From 5007f362f3eb21e6611abb22185fe25ed1d7abb1 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Fri, 15 Aug 2025 10:58:50 +0300 Subject: [PATCH] Chore: fix flakey secure value test (#109724) --- pkg/storage/unified/apistore/secure_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/storage/unified/apistore/secure_test.go b/pkg/storage/unified/apistore/secure_test.go index 89408121a67..d9df5de79ca 100644 --- a/pkg/storage/unified/apistore/secure_test.go +++ b/pkg/storage/unified/apistore/secure_test.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "slices" "testing" "github.com/stretchr/testify/mock" @@ -48,6 +49,7 @@ func TestSecureLifecycle(t *testing.T) { err := prepareSecureValues(context.Background(), secureStore, obj, nil, info) require.NoError(t, err) require.True(t, info.hasChanged) + slices.Sort(info.createdSecureValues) // keep a predictable order require.Equal(t, []string{"NameForA", "NameForB"}, info.createdSecureValues) secure, err := obj.GetSecureValues() require.NoError(t, err)