File tree Expand file tree Collapse file tree
src/test/java/org/privacyidea Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ public class TestJWT extends PILogImplementation implements org.mockserver.mock.
2020{
2121 private ClientAndServer mockServer ;
2222 private String jwt ;
23- private int jwtExpirationTimeMs = 3000 ;
24- private int mockServerResponseDelayMs = 2000 ;
25- private int testIterations = 3 ;
23+ private final int jwtExpirationTimeMs = 4000 ;
24+ private final int mockServerResponseDelayMs = 2000 ;
25+ private int testIterations = 4 ;
2626
2727 private final String serviceAccount = "admin" ;
2828 private final String servicePassword = "admin" ;
@@ -109,7 +109,7 @@ private String postAuthSuccessResponse(String jwt)
109109 public HttpResponse handle (HttpRequest httpRequest ) throws Exception
110110 {
111111 // The next retrieval is always scheduled for 1 minute before expiration
112- this .jwt = generateJWT (60000 + this .jwtExpirationTimeMs );
112+ this .jwt = generateJWT (65000 + this .jwtExpirationTimeMs );
113113 return HttpResponse .response ().withBody (postAuthSuccessResponse (this .jwt ));
114114 }
115115}
You can’t perform that action at this time.
0 commit comments