Skip to content

Commit 7bea36e

Browse files
committed
test: bump slow test timeouts
Should allow them to pass with the race detector.
1 parent 8b91fbd commit 7bea36e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

session_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ func TestSendData_Small(t *testing.T) {
444444

445445
func TestSendData_Large(t *testing.T) {
446446
if testing.Short() {
447-
t.Skip("skipping slow test that times out on the race detector")
447+
t.Skip("skipping slow test that may time out on the race detector")
448448
}
449449
client, server := testClientServer(t)
450450

@@ -520,7 +520,7 @@ func TestSendData_Large(t *testing.T) {
520520
errCh <- nil
521521
}()
522522

523-
drainErrorsUntil(t, errCh, 2, time.Second, "timeout")
523+
drainErrorsUntil(t, errCh, 2, 10*time.Second, "timeout")
524524
}
525525

526526
func TestGoAway(t *testing.T) {
@@ -1129,7 +1129,7 @@ func (u *UnlimitedReader) Read(p []byte) (int, error) {
11291129

11301130
func TestSendData_VeryLarge(t *testing.T) {
11311131
if testing.Short() {
1132-
t.Skip("skipping slow test that times out on the race detector")
1132+
t.Skip("skipping slow test that may time out on the race detector")
11331133
}
11341134
client, server := testClientServer(t)
11351135

@@ -1202,7 +1202,7 @@ func TestSendData_VeryLarge(t *testing.T) {
12021202
}
12031203

12041204
// With the race detector on, this test takes 3-4x longer than this timeout.
1205-
drainErrorsUntil(t, errCh, workers*2, 20*time.Second, "timeout")
1205+
drainErrorsUntil(t, errCh, workers*2, 60*time.Second, "timeout")
12061206
}
12071207

12081208
func TestBacklogExceeded_Accept(t *testing.T) {

0 commit comments

Comments
 (0)