Skip to content

Commit 7aafaee

Browse files
committed
additional time for windows to always sleep more than given seconds
1 parent c951b1c commit 7aafaee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/org/owasp/esapi/crypto/CryptoTokenTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,9 @@ public final void testAddandGetAttributes() {
391391
private static void nap(int n) {
392392
try {
393393
System.out.println("Sleeping " + n + " seconds...");
394-
Thread.sleep( n * 1000 );
394+
// adds additional time to make sure we sleep more than n seconds
395+
int additionalTimeToSleep = 100;
396+
Thread.sleep( n * 1000 + additionalTimeToSleep );
395397
} catch (InterruptedException e) {
396398
; // Ignore
397399
}

0 commit comments

Comments
 (0)