Browse code

fix racy events test

Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <jess@docker.com> (github: jfrazelle)

Jessica Frazelle authored on 2015/02/28 07:48:39
Showing 1 changed files
... ...
@@ -239,7 +239,7 @@ func TestEventsFilters(t *testing.T) {
239 239
 
240 240
 	// make sure we at least got 2 start events
241 241
 	count := strings.Count(out, "start")
242
-	if count != 2 {
242
+	if count < 2 {
243 243
 		t.Fatalf("should have had 2 start events but had %d, out: %s", count, out)
244 244
 	}
245 245