Skip to content

Commit 54340a7

Browse files
committed
Talks image added
1 parent 7bddac2 commit 54340a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java-projects/src/test/java/LoggerTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ public void defaultLogging() throws InterruptedException, ExecutionException {
1616
logClient.start("1", 1);
1717
logClient.start("2", 2);
1818
logClient.start("3", 3);
19-
tasks.add(runAsync(() -> logClient.end("3")));
20-
tasks.add(runAsync(() -> logClient.end("2")));
19+
logClient.end("3");
20+
logClient.end("2");
2121
tasks.add(runAsync(logClient::poll));
2222
tasks.add(runAsync(logClient::poll));
23-
tasks.add(runAsync(() -> logClient.end("1")));
23+
logClient.end("1");
2424
tasks.add(runAsync(logClient::poll));
2525
allOf(tasks.toArray(CompletableFuture[]::new)).get();
2626
}

0 commit comments

Comments
 (0)