Skip to content

Commit abde7e0

Browse files
explicitely use a Date for 'expiration' in the testParseRequireExpiration_Success test to address intermittent test failure
1 parent 1e22d8f commit abde7e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/groovy/io/jsonwebtoken/JwtParserTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ class JwtParserTest {
15731573
@Test
15741574
void testParseRequireExpiration_Success() {
15751575
// expire in the future
1576-
def expiration = new Date(System.currentTimeMillis() + 10000)
1576+
Date expiration = new Date(System.currentTimeMillis() + 10000)
15771577

15781578
byte[] key = randomKey()
15791579

0 commit comments

Comments
 (0)