This reverts commit 09adc4a847.
This commit is contained in:
parent
09adc4a847
commit
7d035f48bc
|
|
@ -8,7 +8,7 @@ namespace System.Threading.Tasks
|
|||
{
|
||||
public static class TaskExtensions
|
||||
{
|
||||
private const int DefaultTimeout = 1000 * 60;
|
||||
private const int DefaultTimeout = 5000;
|
||||
|
||||
public static Task OrTimeout(this Task task, int milliseconds = DefaultTimeout, [CallerMemberName] string memberName = null, [CallerFilePath] string filePath = null, [CallerLineNumber] int? lineNumber = null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -290,7 +290,8 @@ namespace Microsoft.AspNetCore.SignalR.Tests
|
|||
logger.LogInformation("Sent message", bytes.Length);
|
||||
|
||||
logger.LogInformation("Receiving message");
|
||||
var receivedData = await receiveTcs.Task.OrTimeout();
|
||||
// No timeout here because it can take a while to receive all the bytes
|
||||
var receivedData = await receiveTcs.Task;
|
||||
Assert.Equal(message, Encoding.UTF8.GetString(receivedData));
|
||||
logger.LogInformation("Completed receive");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue