Skip to content

Commit

Permalink
Fix for Flaky TestControllerCreationMutationHandler
Browse files Browse the repository at this point in the history
Flaky test fix.
  • Loading branch information
markmandel committed Jan 24, 2019
1 parent 418bdb9 commit d03caff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/fleetallocation/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ func TestControllerCreationMutationHandler(t *testing.T) {
return true, &v1alpha1.GameServerList{Items: gsList}, nil
})

_, cancel := agtesting.StartInformers(m)
alpha1 := m.AgonesInformerFactory.Stable().V1alpha1()
fltSynced := alpha1.Fleets().Informer().HasSynced
gsSetSynced := alpha1.GameServerSets().Informer().HasSynced
gsSynced := alpha1.GameServers().Informer().HasSynced
_, cancel := agtesting.StartInformers(m, fltSynced, gsSetSynced, gsSynced)
defer cancel()

review, err := newAdmissionReview(fa)
Expand Down

0 comments on commit d03caff

Please sign in to comment.