Skip to content

Commit

Permalink
Fix usage of changed utilfeature.SetFeatureGateDuringTest signature
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDog committed Dec 19, 2024
1 parent 158700d commit d010c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1beta2/awscluster_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ func TestAWSClusterValidateCreate(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
defer utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.BootstrapFormatIgnition, true)()
utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.BootstrapFormatIgnition, true)

cluster := tt.cluster.DeepCopy()
cluster.ObjectMeta = metav1.ObjectMeta{
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta2/awsmachine_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func TestAWSMachineCreate(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
defer utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.BootstrapFormatIgnition, true)()
utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.BootstrapFormatIgnition, true)

machine := tt.machine.DeepCopy()
machine.ObjectMeta = metav1.ObjectMeta{
Expand Down

0 comments on commit d010c0f

Please sign in to comment.