diff --git a/internal/pkg/policy/secret_test.go b/internal/pkg/policy/secret_test.go index b66385b110..929946ce3e 100644 --- a/internal/pkg/policy/secret_test.go +++ b/internal/pkg/policy/secret_test.go @@ -129,7 +129,7 @@ func TestGetPolicyInputsWithSecretsAndStreams(t *testing.T) { result, keys, _ := getPolicyInputsWithSecrets(context.TODO(), &pData, bulker) assert.Equal(t, expectedResult, result) - assert.Equal(t, []string{"inputs[0].package_var_secret", "inputs[0].input_var_secret", "inputs[1].streams[0].package_var_secret", "inputs[1].streams[0].input_var_secret", "inputs[1].streams[0].stream_var_secret"}, keys) + assert.ElementsMatch(t, []string{"inputs[0].package_var_secret", "inputs[0].input_var_secret", "inputs[1].streams[0].package_var_secret", "inputs[1].streams[0].input_var_secret", "inputs[1].streams[0].stream_var_secret"}, keys) assert.Nil(t, pData.SecretReferences) }