Skip to content

Commit

Permalink
Increase the number of pub keys present in the JWT
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <[email protected]>
  • Loading branch information
bruth committed Dec 30, 2024
1 parent 2b4b99f commit 530e259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4598,7 +4598,7 @@ func TestJWTUserRevocation(t *testing.T) {
t.Fatalf("Expected connection to have failed")
}
m := <-ncChan
require_Len(t, strings.Count(string(m.Data), apub), 2)
require_Len(t, strings.Count(string(m.Data), apub), 3)
require_True(t, strings.Contains(string(m.Data), `"jwt":"eyJ0`))
// try again with old credentials. Expected to fail
if nc1, err := nats.Connect(srv.ClientURL(), nats.UserCredentials(aCreds1)); err == nil {
Expand Down

0 comments on commit 530e259

Please sign in to comment.