Permalink
Browse files

Fix for flaky test TestControllerAddress

  • Loading branch information...
markmandel authored and Kuqd committed Oct 6, 2018
1 parent aafa806 commit e309bba9da46dd1808960bdf18927dd27c1b8f24
Showing with 4 additions and 1 deletion.
  1. +4 −1 pkg/gameservers/controller_test.go
@@ -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)

0 comments on commit e309bba

Please sign in to comment.