Skip to content

Commit

Permalink
the reason of increase in sleep time is to avoid the non-monotonical …
Browse files Browse the repository at this point in the history
…behaivour of HazelcastTimestamper.nextTimestamp.
  • Loading branch information
Mesut Celik committed Mar 2, 2015
1 parent e7dc993 commit 43966bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ public void testQuery() {
final int entityCount = 10;
final int queryCount = 3;
insertDummyEntities(entityCount);
sleep(1);
sleep(2);
List<DummyEntity> list = null;
for (int i = 0; i < queryCount; i++) {
list = executeQuery(sf);
assertEquals(entityCount, list.size());
sleep(1);
sleep(2);
}

assertNotNull(list);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ public void testQuery() {
final int entityCount = 10;
final int queryCount = 3;
insertDummyEntities(entityCount);
sleep(1);
sleep(2);
List<DummyEntity> list = null;
for (int i = 0; i < queryCount; i++) {
list = executeQuery(sf);
assertEquals(entityCount, list.size());
sleep(1);
sleep(2);
}

assertNotNull(list);
Expand Down

0 comments on commit 43966bf

Please sign in to comment.