Merge pull request #3963 from zhsj/flaky-gc-test

gc: increase sleep time in test
This commit is contained in:
Phil Estes
2020-01-15 08:27:07 -05:00
committed by GitHub

View File

@@ -98,7 +98,7 @@ func TestDeletionThreshold(t *testing.T) {
select { select {
case <-gcWait: case <-gcWait:
case <-time.After(time.Millisecond * 10): case <-time.After(time.Millisecond * 30):
t.Fatal("GC wait timed out") t.Fatal("GC wait timed out")
} }
@@ -162,7 +162,7 @@ func TestStartupDelay(t *testing.T) {
defer cancel() defer cancel()
go scheduler.run(ctx) go scheduler.run(ctx)
time.Sleep(time.Millisecond * 5) time.Sleep(time.Millisecond * 30)
if c := tc.runCount(); c != 1 { if c := tc.runCount(); c != 1 {
t.Fatalf("unexpected gc run count %d, expected 1", c) t.Fatalf("unexpected gc run count %d, expected 1", c)