Merge pull request #123330 from alexzielenski/flake-workaround
flake: avoid flake by ensuring params appear in the initial list Kubernetes-commit: 8a0147c8825ddd6afa56fd3e647e2d659683483c
This commit is contained in:
commit
4bf12f9a46
|
@ -1646,14 +1646,14 @@ func testParamRefCase(t *testing.T, paramIsClusterScoped, nameIsSet, namespaceIs
|
|||
newClusterScopedParam(matchingParamName+"5", otherNonmatchingLabels),
|
||||
}
|
||||
|
||||
require.NoError(t, testContext.UpdateAndWait(&policy, &binding))
|
||||
|
||||
for _, p := range params {
|
||||
// Don't wait for these sync the informers would not have been
|
||||
// created unless bound to a policy
|
||||
require.NoError(t, testContext.Update(p))
|
||||
}
|
||||
|
||||
require.NoError(t, testContext.UpdateAndWait(&policy, &binding))
|
||||
|
||||
namespacedRequestObject := newParam("some param", nonMatchingNamespace, nil)
|
||||
clusterScopedRequestObject := newClusterScopedParam("other param", nil)
|
||||
|
||||
|
|
Loading…
Reference in New Issue