mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
Fix test helper
This commit is contained in:
@@ -20,10 +20,6 @@ public class DefaultSyncAsyncExecutor implements SyncAsyncExecutor {
|
||||
this.switchToAsyncTime = switchToAsyncTime;
|
||||
}
|
||||
|
||||
public ExecutionType execute(Runnable runnable) {
|
||||
return execute(ignored -> runnable.run());
|
||||
}
|
||||
|
||||
public ExecutionType execute(Consumer<ExecutionType> runnable) {
|
||||
if (Instant.now().isAfter(switchToAsyncTime)) {
|
||||
executor.execute(() -> runnable.accept(ASYNCHRONOUS));
|
||||
|
||||
Reference in New Issue
Block a user