Skip to content

Commit

Permalink
Fix key comparison, in case of slow EC
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmoore committed Aug 11, 2016
1 parent c4d8383 commit 414748e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static void InsertData() throws ExecutionException, InterruptedException

future.get();
assertTrue(future.isSuccess());
Thread.sleep(1000);
}

@Test
Expand All @@ -52,7 +53,7 @@ public void testSingleFetch() throws ExecutionException, InterruptedException

final List<Row> rows = result.getRowsCopy();
final List<Row> expectedKeys = getKeyHeads();
assertTrue(expectedKeys.containsAll(rows));
assertTrue(rows.containsAll(expectedKeys));
}

private static List<Row> getKeyHeads()
Expand Down

0 comments on commit 414748e

Please sign in to comment.