From c9f39d41294c54968e8f3e2e04fd7297501474f5 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Mon, 14 Sep 2015 04:57:56 +0000 Subject: [PATCH] Address one intermittent failure in registry_test.go --- probe/docker/registry_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/probe/docker/registry_test.go b/probe/docker/registry_test.go index 79ecbe50e..6a0ae651e 100644 --- a/probe/docker/registry_test.go +++ b/probe/docker/registry_test.go @@ -1,7 +1,6 @@ package docker_test import ( - "reflect" "runtime" "sort" "sync" @@ -181,17 +180,16 @@ func TestRegistry(t *testing.T) { { want := []docker.Container{&mockContainer{container1}} - test.Poll(t, 10*time.Millisecond, want, func() interface{} { + test.Poll(t, 100*time.Millisecond, want, func() interface{} { return allContainers(registry) }) } { - have := allImages(registry) want := []*client.APIImages{&apiImage1} - if !reflect.DeepEqual(want, have) { - t.Errorf("%s", test.Diff(want, have)) - } + test.Poll(t, 100*time.Millisecond, want, func() interface{} { + return allImages(registry) + }) } }) }