Skip to content

Commit

Permalink
Fix order of "expected" and "actual" arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
adombeck committed Jan 28, 2025
1 parent 7296ada commit 8a8e564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/broker/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,11 +984,11 @@ func TestIsAuthenticatedAllowedUsersConfig(t *testing.T) {
require.True(t, json.Valid([]byte(data)), "IsAuthenticated returned data must be a valid JSON")
require.NoError(t, err)
if slices.Contains(tc.wantAllowedUsers, u) {
require.Equal(t, access, broker.AuthGranted, "authentication failed")
require.Equal(t, broker.AuthGranted, access, "authentication failed")
continue
}
if slices.Contains(tc.wantUnallowedUsers, u) {
require.Equal(t, access, broker.AuthDenied, "authentication failed")
require.Equal(t, broker.AuthDenied, access, "authentication failed")
continue
}
t.Fatalf("user %s is not in the allowed or unallowed users list", u)
Expand Down

0 comments on commit 8a8e564

Please sign in to comment.