From 8d951c198f83feaa2b019b28da97c6a2839083a2 Mon Sep 17 00:00:00 2001 From: Robert Bailey Date: Tue, 30 Mar 2021 08:37:22 +0000 Subject: [PATCH] Use the correct feature flag name (and guard it properly). --- pkg/fleets/controller_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/fleets/controller_test.go b/pkg/fleets/controller_test.go index ab63dbe766..9450729bbb 100644 --- a/pkg/fleets/controller_test.go +++ b/pkg/fleets/controller_test.go @@ -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 @@ -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