Skip to content

Commit a9c3ff5

Browse files
author
Geoffrey Kizer
committed
test fixes
1 parent 05bae0f commit a9c3ff5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public async Task Http2_DataSentBeforeServerPreface_ProtocolError()
129129
DataFrame invalidFrame = new DataFrame(new byte[10], FrameFlags.Padded, 10, 1);
130130
await connection.WriteFrameAsync(invalidFrame);
131131

132-
await AssertProtocolErrorAsync(sendTask, ProtocolErrors.PROTOCOL_ERROR);
132+
await Assert.ThrowsAsync<HttpRequestException>(() => sendTask);
133133
}
134134
}
135135

src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.Cancellation.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ await LoopbackServerFactory.CreateClientAndServerAsync(async uri =>
8484
[InlineData(false)]
8585
public async Task ConnectTimeout_PlaintextStreamFilterTimesOut_Throws(bool useSsl)
8686
{
87+
if (UseVersion == HttpVersion.Version30)
88+
{
89+
// HTTP3 does not support PlaintextStreamFilter
90+
return;
91+
}
92+
8793
var releaseServer = new TaskCompletionSource();
8894
await LoopbackServerFactory.CreateClientAndServerAsync(async uri =>
8995
{

0 commit comments

Comments
 (0)