diff --git a/probe/docker/registry_test.go b/probe/docker/registry_test.go index 240839426..8ff812b9f 100644 --- a/probe/docker/registry_test.go +++ b/probe/docker/registry_test.go @@ -192,7 +192,7 @@ func TestRegistryEvents(t *testing.T) { runtime.Gosched() check := func(want []docker.Container) { - test.Poll(t, 10*time.Millisecond, want, func() interface{} { + test.Poll(t, 100*time.Millisecond, want, func() interface{} { return allContainers(registry) }) } diff --git a/test/poll.go b/test/poll.go index 593d6cfff..864043f25 100644 --- a/test/poll.go +++ b/test/poll.go @@ -19,7 +19,7 @@ func Poll(t *testing.T, d time.Duration, want interface{}, have func() interface time.Sleep(d / 10) } h := have() - if reflect.DeepEqual(want, h) { + if !reflect.DeepEqual(want, h) { t.Fatal(Diff(want, h)) } }