From 42f49e3e2076cafafc06bb46a1d6add930cc0900 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Tue, 10 Feb 2026 19:12:20 +0800 Subject: [PATCH] test(node): fix flaky jwt-test #30388 (#1999) This PR fixes a flaky jwt-test. The test is a jwt "from one second in the future". The test passes; the reason for this is that the CI-system is slow, and by the time the jwt is actually evaluated, that second has passed, and it's no longer future. Alternative to #30380 Co-authored-by: Martin HS --- node/rpcstack_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/rpcstack_test.go b/node/rpcstack_test.go index d55b6c3ab3..8c1d7db168 100644 --- a/node/rpcstack_test.go +++ b/node/rpcstack_test.go @@ -306,7 +306,7 @@ func TestJWT(t *testing.T) { expFail := []func() string{ // future func() string { - return fmt.Sprintf("Bearer %v", issueToken(secret, nil, testClaim{"iat": time.Now().Unix() + int64(jwtExpiryTimeout.Seconds()) + 1})) + return fmt.Sprintf("Bearer %v", issueToken(secret, nil, testClaim{"iat": time.Now().Unix() + int64(jwtExpiryTimeout.Seconds()) + 60})) }, // stale func() string {