From 0ba9032a6f15ddb99efa436aeefd9a9d5547ab1f Mon Sep 17 00:00:00 2001 From: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Date: Fri, 4 Aug 2023 11:41:36 -0400 Subject: [PATCH] chore: fix non-deterministic test Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --- util/settings/settings_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/settings/settings_test.go b/util/settings/settings_test.go index 0f568d67fe060..07a2c268a6bd7 100644 --- a/util/settings/settings_test.go +++ b/util/settings/settings_test.go @@ -696,7 +696,7 @@ func TestSettingsManager_GetKustomizeBuildOptions(t *testing.T) { }) got, err := settingsManager.GetKustomizeSettings() - assert.EqualError(t, err, "failed to add kustomize version from \"kustomize.version.v3.2.1\": found duplicate kustomize version: v3.2.1") + assert.ErrorContains(t, err, "found duplicate kustomize version: v3.2.1") assert.Empty(t, got) })