Skip to content

Commit

Permalink
Fixing Flaky test TestControllerSyncFleet
Browse files Browse the repository at this point in the history
This should hopefully fix these tests.
  • Loading branch information
markmandel authored and Cyril TOVENA committed Jun 17, 2018
1 parent 18f69a1 commit 1ab6cdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/fleets/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 1ab6cdb

Please sign in to comment.