From 48de62ea3caff098917952398d8b88904942e987 Mon Sep 17 00:00:00 2001 From: Kim Christensen <2461567+kichristensen@users.noreply.github.com> Date: Thu, 5 Dec 2024 20:52:38 +0100 Subject: [PATCH] Stabilize the flaky TestResolveSensitiveParameters test (#3268) chore(test): Stabilize TestResolveSensitiveParameters Signed-off-by: Kim Christensen --- pkg/runtime/runtime_manifest_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/runtime/runtime_manifest_test.go b/pkg/runtime/runtime_manifest_test.go index 02d54be08..71d56b503 100644 --- a/pkg/runtime/runtime_manifest_test.go +++ b/pkg/runtime/runtime_manifest_test.go @@ -329,11 +329,13 @@ install: require.Len(t, args, 3) assert.Equal(t, "deliciou$dubonnet", args[0]) - assert.Equal(t, "{\"secret\":\"this_is_secret\"}", args[1]) + assert.Equal(t, "{\"secret\":\"this_is_secret\"}", args[1]) assert.Equal(t, "regular param value", args[2]) // There should now be one sensitive value tracked under the manifest - assert.Equal(t, []string{"deliciou$dubonnet", "{\"secret\":\"this_is_secret\"}"}, rm.GetSensitiveValues()) + assert.Len(t, rm.GetSensitiveValues(), 2) + assert.Contains(t, rm.GetSensitiveValues(), "deliciou$dubonnet") + assert.Contains(t, rm.GetSensitiveValues(), "{\"secret\":\"this_is_secret\"}") } func TestResolveCredential(t *testing.T) {