We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f111f commit b16f021Copy full SHA for b16f021
local_examples/cmds_hash/lettuce-async/CmdsHashExample.java
@@ -214,13 +214,16 @@ public void run() {
214
// REMOVE_END
215
// Try to set expiration on non-existent field
216
return asyncCommands.hexpire("myhash", 10, "nonexistent");
217
- }).thenAccept(res4 -> {
218
- System.out.println(res4);
219
- // >>> [-2]
220
- // REMOVE_START
221
- assertThat(res4).isEqualTo(Arrays.asList(-2L));
222
- // REMOVE_END
223
- }).toCompletableFuture();
+ })
+ // REMOVE_START
+ .thenApply(res4 -> {
+ assertThat(res4).isEqualTo(Arrays.asList(-2L));
+ return res;
+ // REMOVE_END
224
+ .thenAccept(System.out::println)
225
+ // >>> -2
226
+ .toCompletableFuture();
227
// STEP_END
228
229
hExpireExample.join();
0 commit comments