From 68780b4c0c51ed4627f303aacacc90cadbfa8ca6 Mon Sep 17 00:00:00 2001 From: Katrina Verey Date: Mon, 11 Jul 2022 20:03:13 -0400 Subject: [PATCH] Fix flakey test --- api/krusty/namedspacedserviceaccounts_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/krusty/namedspacedserviceaccounts_test.go b/api/krusty/namedspacedserviceaccounts_test.go index 5a4b5e0ac..791c95074 100644 --- a/api/krusty/namedspacedserviceaccounts_test.go +++ b/api/krusty/namedspacedserviceaccounts_test.go @@ -70,8 +70,5 @@ resources: `) err := th.RunWithErr(".", th.MakeDefaultOptions()) - assert.EqualError(t, err, - "updating name reference in 'subjects' field of 'ClusterRoleBinding.v1.rbac.authorization.k8s.io/crb-a.[noNs]': "+ - "considering field 'subjects' of object ClusterRoleBinding.v1.rbac.authorization.k8s.io/crb-a.[noNs]: "+ - "found multiple possible referrals: ServiceAccount.v1.[noGrp]/sa.a, ServiceAccount.v1.[noGrp]/sa.b") + assert.Contains(t, err.Error(), "found multiple possible referrals: ServiceAccount.v1.[noGrp]/sa.a, ServiceAccount.v1.[noGrp]/sa.b") }