Skip to content

Commit 2b6df28

Browse files
authored
node: fix regression in TestJWT (#25635)
1 parent 7813b67 commit 2b6df28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

node/rpcstack_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,10 @@ func TestJWT(t *testing.T) {
412412
if err := wsRequest(t, wsUrl, "Authorization", token); err == nil {
413413
t.Errorf("tc %d-ws, token '%v': expected not to allow, got ok", i, token)
414414
}
415+
415416
token = tokenFn()
416-
if resp := rpcRequest(t, htUrl, "Authorization", token); resp.StatusCode != 403 {
417+
resp := rpcRequest(t, htUrl, "Authorization", token)
418+
if resp.StatusCode != http.StatusUnauthorized {
417419
t.Errorf("tc %d-http, token '%v': expected not to allow, got %v", i, token, resp.StatusCode)
418420
}
419421
}

0 commit comments

Comments
 (0)