Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 25bc6b4

Browse files
committed
Only test the number of errors
The map implementation of go iterates a map random;y so we can't know which error has what message. It's ok to remove this here because we have an e2e test (the final errors are sorted alphabetically). Signed-off-by: Djordje Lukic <[email protected]>
1 parent 0be3c16 commit 25bc6b4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/validator/rules/externalsecrets_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ func TestExternalSecrets(t *testing.T) {
5050

5151
errs := s.Validate(input)
5252
assert.Equal(t, len(errs), 2)
53-
54-
assert.ErrorContains(t, errs[0], `secret "my_secret" should be external`)
55-
assert.ErrorContains(t, errs[1], `secret "my_other_secret" should be external`)
5653
})
5754

5855
}

0 commit comments

Comments
 (0)