Skip to content

Commit

Permalink
Use the correct feature flag name (and guard it properly).
Browse files Browse the repository at this point in the history
  • Loading branch information
roberthbailey committed Mar 30, 2021
1 parent e159616 commit 8d951c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/fleets/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ func TestControllerSyncFleet(t *testing.T) {
})

t.Run("gameserverset with different image details", func(t *testing.T) {
assert.NoError(t, utilruntime.ParseFeatures(string(utilruntime.FeaturePlayerTracking)+"=true"))
utilruntime.FeatureTestMutex.Lock()
defer utilruntime.FeatureTestMutex.Unlock()
assert.NoError(t, utilruntime.ParseFeatures(string(utilruntime.FeatureRollingUpdateOnReady)+"=true"))

f := defaultFixture()
f.Spec.Strategy.Type = appsv1.RollingUpdateDeploymentStrategyType
Expand Down Expand Up @@ -241,7 +243,7 @@ func TestControllerSyncFleet(t *testing.T) {
}
// update main resource
gsSet := ua.GetObject().(*agonesv1.GameServerSet)
assert.Equal(t, int32(3), gsSet.Spec.Replicas)
assert.Equal(t, int32(4), gsSet.Spec.Replicas)
assert.Equal(t, "gsSet1", gsSet.ObjectMeta.Name)

return true, gsSet, nil
Expand Down

0 comments on commit 8d951c1

Please sign in to comment.