Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlermitage committed Nov 23, 2023
1 parent fbebcca commit 12cb9bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/test/java/manon/util/basetest/AbstractIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

Expand Down Expand Up @@ -213,7 +212,6 @@ private void clearCache() {
authTokenService.evictAllCache();
}

@SneakyThrows({ExecutionException.class, InterruptedException.class})
public void initDb() {
long t1 = currentTimeMillis();
MDC.put(KEY_ENV, ENV);
Expand All @@ -231,7 +229,7 @@ public void initDb() {
registrationService.ensureAdmin();
}, tasksExecutor);
CompletableFuture<Void> additionalInitDbTask = CompletableFuture.runAsync(this::additionalParallelInitDb, tasksExecutor);
CompletableFuture.allOf(registerPlayerTask, ensureUsersTask, additionalInitDbTask).get();
CompletableFuture.allOf(registerPlayerTask, ensureUsersTask, additionalInitDbTask).join();

userCount = (int) userService.count();

Expand Down

0 comments on commit 12cb9bd

Please sign in to comment.