Opens up the tombstone GC test timing.

This commit is contained in:
James Phillips 2017-11-08 13:43:39 -08:00
parent b77c7a1c19
commit f31856c1b7
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 3 additions and 3 deletions

View File

@ -23,8 +23,8 @@ func TestTombstoneGC_invalid(t *testing.T) {
} }
func TestTombstoneGC(t *testing.T) { func TestTombstoneGC(t *testing.T) {
ttl := 20 * time.Millisecond ttl := 200 * time.Millisecond
gran := 5 * time.Millisecond gran := 50 * time.Millisecond
gc, err := NewTombstoneGC(ttl, gran) gc, err := NewTombstoneGC(ttl, gran)
if err != nil { if err != nil {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)
@ -99,6 +99,6 @@ func TestTombstoneGC_Expire(t *testing.T) {
select { select {
case <-gc.ExpireCh(): case <-gc.ExpireCh():
t.Fatalf("should be reset") t.Fatalf("should be reset")
case <-time.After(20 * time.Millisecond): case <-time.After(ttl * 2):
} }
} }