Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste authored Jun 20, 2022
1 parent 76680e7 commit e1e1c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ public class RedisBackedCacheIntTest {

@Test
public void testFindingAnInsertedValue() {
cache.put("foo", "FOO");
underTest.put("foo", "FOO");

Optional<String> foundObject = Steadybit.networkDelayPackages(Duration.ofSeconds(2))
.forContainers(redis)
.exec(() -> {
//this code runs after the attack was started.
//As soon as this lambda exits the attack will be stopped.
return cache.get("foo", String.class);
return underTest.get("foo", String.class);
});

assertTrue("When an object in the cache is retrieved, it can be found", foundObject.isPresent());
Expand Down

0 comments on commit e1e1c96

Please sign in to comment.