From c46612f691d88b30939d28b46e2601c2192a55b6 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 8 Nov 2017 13:57:17 -0800 Subject: [PATCH] Shifts off a gran boundary to help make test less flaky. --- agent/consul/state/tombstone_gc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/consul/state/tombstone_gc_test.go b/agent/consul/state/tombstone_gc_test.go index 70425ee587..30624d1bbe 100644 --- a/agent/consul/state/tombstone_gc_test.go +++ b/agent/consul/state/tombstone_gc_test.go @@ -38,7 +38,7 @@ func TestTombstoneGC(t *testing.T) { start := time.Now() gc.Hint(100) - time.Sleep(2 * gran) + time.Sleep(2*gran + gran/3) start2 := time.Now() gc.Hint(120) gc.Hint(125)