Sleep to stop TestRegistryDelete() failing

This commit is contained in:
Bryan Boreham
2018-08-25 16:51:08 +00:00
parent c1b93c3161
commit c07b6b5ca8

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{}