Chore: fix flakey secure value test (#109724)

This commit is contained in:
Ryan McKinley
2025-08-15 07:58:50 +00:00
committed by GitHub
parent 1ff39510d3
commit 5007f362f3
@@ -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)