Skip to content

Commit

Permalink
fix flaky test - dumy set-get to gain time
Browse files Browse the repository at this point in the history
  • Loading branch information
atakavci committed Sep 27, 2024
1 parent ec6ca7b commit 011f4e7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public void simpleWithSimpleMap() {
assertEquals("bar", jedis.get("foo"));
assertEquals(1, cache.getSize());
control.del("foo");
control.set("dummyKey", "dummyValue");
control.get("dummyKey");
control.del("dummyKey");
assertEquals(1, cache.getSize());
assertNull(jedis.get("foo"));
assertEquals(1, cache.getSize());
Expand Down Expand Up @@ -80,6 +83,9 @@ public void flushAllWithSimpleMap() {
assertEquals("bar", jedis.get("foo"));
assertEquals(1, cache.getSize());
control.flushAll();
control.set("dummyKey", "dummyValue");
control.get("dummyKey");
control.del("dummyKey");
assertEquals(1, cache.getSize());
assertNull(jedis.get("foo"));
assertEquals(1, cache.getSize());
Expand Down

0 comments on commit 011f4e7

Please sign in to comment.