Skip to content

Commit

Permalink
Merge pull request #2394 from mboersma/fix-flaky-test
Browse files Browse the repository at this point in the history
Serialize unit test to prevent flaky failures
  • Loading branch information
k8s-ci-robot authored Jun 17, 2022
2 parents 6424bd5 + fd257fd commit b4783d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exp/api/v1beta1/azuremachinepool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func TestAzureMachinePool_Validate(t *testing.T) {
for _, c := range cases {
c := c
t.Run(c.Name, func(t *testing.T) {
t.Parallel()
// Don't add t.Parallel() here or the test will fail.
// NOTE: AzureMachinePool is behind MachinePool feature gate flag; the web hook
// must prevent creating new objects in case the feature flag is disabled.
defer utilfeature.SetFeatureGateDuringTest(t, feature.Gates, capifeature.MachinePool, true)()
Expand Down

0 comments on commit b4783d4

Please sign in to comment.