Skip to content

Commit

Permalink
relax timing check
Browse files Browse the repository at this point in the history
So it can handle fast as well as slow CI boxes
  • Loading branch information
ar committed Sep 28, 2015
1 parent cdd0162 commit 236079b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/minigl/src/test/java/org/jpos/gl/AccountLockTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ public void run() {
{
}
long end = System.currentTimeMillis();
assertTrue("Elapsed is " + (end - start), end - start > 5000);
assertTrue ("Elapsed is "+(end - start),end - start < 6000);
assertTrue("Elapsed is " + (end - start), end - start >= 5000);
assertTrue ("Elapsed is "+(end - start),end - start < 7000);
tx2.commit();
gls2.close();
}
}

0 comments on commit 236079b

Please # to comment.