Skip to content

Commit 98d3950

Browse files
committed
Diagnose test failure in cibuild
1 parent 639ad56 commit 98d3950

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/OpenApiKiotaEndToEndTests/Headers/ETagTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
5353
Stream? response = await apiClient.Countries.HeadAsync(configuration => configuration.Options.Add(headerInspector));
5454

5555
// Assert
56+
57+
if (response != null)
58+
{
59+
string content = await new StreamReader(response).ReadToEndAsync();
60+
true.Should().BeFalse(content);
61+
}
62+
5663
response.Should().BeNull();
5764

5865
headerInspector.ResponseHeaders.Should().ContainKey(HeaderNames.ETag).WhoseValue.Should().NotBeNullOrEmpty();

0 commit comments

Comments
 (0)