Merge pull request #3334 from weaveworks/registry-test-sleep

Sleep to stop TestRegistryDelete() failing
This commit is contained in:
Bryan Boreham
2018-09-01 13:47:30 +01:00
committed by GitHub

View File

@@ -470,7 +470,7 @@ func TestRegistryDelete(t *testing.T) {
setupStubs(mdc, func() {
registry := testRegistry()
defer registry.Stop()
runtime.Gosched()
time.Sleep(time.Millisecond * 100) // Allow for goroutines to get started
// Collect all the events.
mtx := sync.Mutex{}