Skip to content

Commit

Permalink
Revert unit tests changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi committed Nov 15, 2024
1 parent dbd4910 commit 8b441d5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import dev.rollczi.litecommands.annotations.command.Command;
import dev.rollczi.litecommands.annotations.execute.Execute;
import dev.rollczi.litecommands.reflect.type.TypeToken;
import dev.rollczi.litecommands.scheduler.SchedulerExecutorPoolImpl;
import dev.rollczi.litecommands.unit.annotations.LiteTestSpec;
import dev.rollczi.litecommands.unit.blocking.Blocking;
import dev.rollczi.litecommands.unit.blocking.BlockingArgument;
Expand All @@ -15,6 +16,9 @@

class CompletableFutureArgumentTest extends LiteTestSpec {

static LiteTestConfig config = builder -> builder
.scheduler(new SchedulerExecutorPoolImpl("litecommands-test"));

public static final Class<CompletableFuture<String>> FUTURE_TYPE = new TypeToken<CompletableFuture<String>>() {}.getRawType();

@Command(name = "async")
Expand All @@ -37,7 +41,7 @@ void test() {

await()
.atLeast(400, TimeUnit.MILLISECONDS)
.atMost(1500, TimeUnit.MILLISECONDS)
.atMost(900, TimeUnit.MILLISECONDS)
.until(() -> completableFuture.isDone());

assertThat(completableFuture.join())
Expand Down

0 comments on commit 8b441d5

Please sign in to comment.