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).
This commit is contained in:
Alfonso Acosta
2016-11-08 13:44:28 +00:00
parent 8e3e4a3af8
commit 74490b8fef

View File

@@ -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)
}