5 references to DefaultTimeout
Microsoft.AspNetCore.Http.Connections.Tests (1)
WebSocketsTests.cs (1)
224await transport.DefaultTimeout(TimeSpan.FromSeconds(10));
Microsoft.AspNetCore.InternalTesting.Tests (1)
TaskExtensionsTest.cs (1)
37await Assert.ThrowsAsync<TimeoutException>(async () => await Task.Delay(30000, cts.Token).DefaultTimeout(TimeSpan.FromMilliseconds(50)));
Sockets.FunctionalTests (3)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (3)
581await requestAborted.Task.DefaultTimeout(TimeSpan.FromSeconds(30)); 704await aborted.Task.DefaultTimeout(TimeSpan.FromSeconds(30)); 830await requestAborted.Task.DefaultTimeout(TimeSpan.FromSeconds(30));