Skip to content

Commit

Permalink
Flaky: Race condition in TestControllerSyncGameServerStartingState (#779
Browse files Browse the repository at this point in the history
)
  • Loading branch information
markmandel authored May 21, 2019
1 parent a9c867f commit 6b4698d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkg/gameservers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ type Controller struct {
workerqueue *workerqueue.WorkerQueue
creationWorkerQueue *workerqueue.WorkerQueue // handles creation only
deletionWorkerQueue *workerqueue.WorkerQueue // handles deletion only
stop <-chan struct {
}
recorder record.EventRecorder
stop <-chan struct{}
recorder record.EventRecorder
}

// NewController returns a new gameserver crd controller
Expand Down
2 changes: 1 addition & 1 deletion pkg/gameservers/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ func TestControllerSyncGameServerStartingState(t *testing.T) {
return true, gs, nil
})

_, cancel := agtesting.StartInformers(m, c.gameServerSynced)
_, cancel := agtesting.StartInformers(m, c.gameServerSynced, c.podSynced, c.nodeSynced)
defer cancel()

gs, err := c.syncGameServerStartingState(gsFixture)
Expand Down

0 comments on commit 6b4698d

Please sign in to comment.