Skip to content

Commit af1a6ec

Browse files
halter73Tratcher
authored andcommitted
Add more timeouts to Http2TestBase (#5955)
1 parent 0d200b4 commit af1a6ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Servers/Kestrel/test/InMemory.FunctionalTests/Http2/Http2TestBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ protected Task SendAsync(ReadOnlySpan<byte> span)
648648

649649
protected static async Task FlushAsync(PipeWriter writableBuffer)
650650
{
651-
await writableBuffer.FlushAsync();
651+
await writableBuffer.FlushAsync().AsTask().DefaultTimeout();
652652
}
653653

654654
protected Task SendPreambleAsync() => SendAsync(new ArraySegment<byte>(Http2Connection.ClientPreface));
@@ -1161,7 +1161,7 @@ protected async Task WaitForConnectionErrorAsync<TException>(bool ignoreNonGoAwa
11611161
Assert.Contains(expectedErrorMessage, expected => message.Exception.Message.Contains(expected));
11621162
}
11631163

1164-
await _connectionTask;
1164+
await _connectionTask.DefaultTimeout();
11651165
_pair.Application.Output.Complete();
11661166
}
11671167

0 commit comments

Comments
 (0)