From 1ab6cdbf1b2d7090bb0044f582d3f6c9e80c9eda Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Thu, 14 Jun 2018 10:17:43 -0700 Subject: [PATCH] Fixing Flaky test TestControllerSyncFleet This should hopefully fix these tests. --- pkg/fleets/controller_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/fleets/controller_test.go b/pkg/fleets/controller_test.go index 210e14219f..615a252ee7 100644 --- a/pkg/fleets/controller_test.go +++ b/pkg/fleets/controller_test.go @@ -59,7 +59,7 @@ func TestControllerSyncFleet(t *testing.T) { return true, gsSet, nil }) - _, cancel := agtesting.StartInformers(m) + _, cancel := agtesting.StartInformers(m, c.fleetSynced) defer cancel() err := c.syncFleet("default/fleet-1") @@ -96,7 +96,7 @@ func TestControllerSyncFleet(t *testing.T) { return true, nil, nil }) - _, cancel := agtesting.StartInformers(m) + _, cancel := agtesting.StartInformers(m, c.fleetSynced, c.gameServerSetSynced) defer cancel() err := c.syncFleet("default/fleet-1") @@ -132,7 +132,7 @@ func TestControllerSyncFleet(t *testing.T) { return true, gsSet, nil }) - _, cancel := agtesting.StartInformers(m) + _, cancel := agtesting.StartInformers(m, c.fleetSynced, c.gameServerSetSynced) defer cancel() err := c.syncFleet("default/fleet-1") @@ -183,7 +183,7 @@ func TestControllerSyncFleet(t *testing.T) { return true, gsSet, nil }) - _, cancel := agtesting.StartInformers(m) + _, cancel := agtesting.StartInformers(m, c.fleetSynced, c.gameServerSetSynced) defer cancel() err := c.syncFleet("default/fleet-1")