Skip to content

Commit b222677

Browse files
committed
Expand timeout in SocketOutputTests due to flakiness on the CI server
#154
1 parent 5dfca95 commit b222677

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Microsoft.AspNet.Server.KestrelTests/SocketOutputTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void CanWrite1MB()
5454
socketOutput.Write(buffer, onCompleted, null);
5555

5656
// Assert
57-
Assert.True(completedWh.Wait(100));
57+
Assert.True(completedWh.Wait(1000));
5858
}
5959
}
6060

@@ -97,19 +97,19 @@ public void WritesDontCompleteImmediatelyWhenTooManyBytesAreAlreadyPreCompleted(
9797
socketOutput.Write(buffer, onCompleted, null);
9898
// Assert
9999
// The first write should pre-complete since it is <= _maxBytesPreCompleted.
100-
Assert.True(completedWh.Wait(100));
100+
Assert.True(completedWh.Wait(1000));
101101
// Arrange
102102
completedWh.Reset();
103103
// Act
104104
socketOutput.Write(buffer, onCompleted, null);
105105
// Assert
106106
// Too many bytes are already pre-completed for the second write to pre-complete.
107-
Assert.False(completedWh.Wait(100));
107+
Assert.False(completedWh.Wait(1000));
108108
// Act
109109
completeQueue.Dequeue()(0);
110110
// Assert
111111
// Finishing the first write should allow the second write to pre-complete.
112-
Assert.True(completedWh.Wait(100));
112+
Assert.True(completedWh.Wait(1000));
113113
}
114114
}
115115

0 commit comments

Comments
 (0)