From 74490b8fef34c5477e1eeb4e1033b86ca451f593 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 8 Nov 2016 13:44:28 +0000 Subject: [PATCH] Give time to the overlay test backoff collectors to finish Not the most elegant/robust solution but it solves the problem without adding extra methods to the backoff interface (only to check if they are ready from tests). --- probe/overlay/weave_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/probe/overlay/weave_test.go b/probe/overlay/weave_test.go index 78afe2434..ac5fd59ea 100644 --- a/probe/overlay/weave_test.go +++ b/probe/overlay/weave_test.go @@ -81,6 +81,9 @@ func runTest(t *testing.T, f func(*overlay.Weave)) { return len(have.Overlay.Nodes) }) + // Give some time for the Backoff collectors to finish + time.Sleep(time.Second) + f(w) }