Skip to content

Commit

Permalink
test(authorization): fixed flaky test RSATest.`key file changes are d…
Browse files Browse the repository at this point in the history
…etected`
  • Loading branch information
slisson committed Feb 19, 2025
1 parent dc68753 commit 2066ff8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class RSATest {
privateKeyFile.writeText(privateKeyPem1)

val verifyingUtil = ModelixJWTUtil()
verifyingUtil.fileRefreshTime = 50.milliseconds
verifyingUtil.fileRefreshTime = 500.milliseconds
verifyingUtil.loadKeysFromFiles(publicKeyFile)
run {
val signingUtil = ModelixJWTUtil()
Expand All @@ -314,7 +314,7 @@ class RSATest {
assertFailsWith<BadJOSEException> {
verifyingUtil.verifyToken(tokenString)
}
Thread.sleep(50)
Thread.sleep(500)
verifyingUtil.verifyToken(tokenString)
}
}
Expand Down

0 comments on commit 2066ff8

Please sign in to comment.