Skip to content

Commit

Permalink
Fix for flaky test TestControllerAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
markmandel committed Oct 6, 2018
1 parent aafa806 commit 11c4bde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/gameservers/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,10 @@ func TestControllerAddress(t *testing.T) {
return true, &corev1.NodeList{Items: []corev1.Node{fixture.node}}, nil
})

_, cancel := agtesting.StartInformers(mocks, c.gameServerSynced)
v1 := mocks.KubeInformationFactory.Core().V1()
nodeSynced := v1.Nodes().Informer().HasSynced
podSynced := v1.Pods().Informer().HasSynced
_, cancel := agtesting.StartInformers(mocks, c.gameServerSynced, podSynced, nodeSynced)
defer cancel()

addr, err := c.address(&pod)
Expand Down

0 comments on commit 11c4bde

Please sign in to comment.