Skip to content

Commit

Permalink
Fix test that was timing dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Oct 25, 2020
1 parent cf25b62 commit d5075f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/java/world/bentobox/bank/PhManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,9 @@ public void testCheckCacheWithBalances() {
*/
@Test
public void testCheckCacheNoNamesChange() {
long ls = pm.getLastSorted();
pm.setLastSorted(System.currentTimeMillis() + 10000);
assertEquals(5, pm.checkCache(world, 5));
assertTrue(ls < pm.getLastSorted());
verify(bm).getBalances(eq(world));
}

/**
Expand Down

0 comments on commit d5075f8

Please sign in to comment.