From 757e3533343a7d9b45a65268174ffaa2b81184a9 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 8 Nov 2017 13:43:39 -0800 Subject: [PATCH] Opens up the tombstone GC test timing. --- agent/consul/state/tombstone_gc_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/consul/state/tombstone_gc_test.go b/agent/consul/state/tombstone_gc_test.go index 24b318bf1..70425ee58 100644 --- a/agent/consul/state/tombstone_gc_test.go +++ b/agent/consul/state/tombstone_gc_test.go @@ -23,8 +23,8 @@ func TestTombstoneGC_invalid(t *testing.T) { } func TestTombstoneGC(t *testing.T) { - ttl := 20 * time.Millisecond - gran := 5 * time.Millisecond + ttl := 200 * time.Millisecond + gran := 50 * time.Millisecond gc, err := NewTombstoneGC(ttl, gran) if err != nil { t.Fatalf("err: %v", err) @@ -99,6 +99,6 @@ func TestTombstoneGC_Expire(t *testing.T) { select { case <-gc.ExpireCh(): t.Fatalf("should be reset") - case <-time.After(20 * time.Millisecond): + case <-time.After(ttl * 2): } }