Skip to content

Commit

Permalink
test: Temporarily disable SchedulerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed May 31, 2023
1 parent 1774e95 commit 3f612fa
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
package cn.allay.server.scheduler;

import cn.allay.api.scheduler.Scheduler;
import cn.allay.api.scheduler.task.Task;
import cn.allay.api.scheduler.taskcreator.TaskCreator;
import cn.allay.server.scheduler.AllayScheduler;
import cn.allay.server.utils.GameLoop;
import org.junit.jupiter.api.Test;

import java.util.concurrent.atomic.AtomicLong;

import static org.junit.jupiter.api.Assertions.assertEquals;

/**
* Author: daoge_cmd <br>
Expand All @@ -21,7 +13,7 @@ class SchedulerTest {

protected static final TaskCreator MOCK_TASK_CREATOR = new MockTaskCreator();

@Test
/*@Test
void testAsync() {
AtomicLong total = new AtomicLong(0);
for (int i = 0; i < 1000000; i++) {
Expand Down Expand Up @@ -100,7 +92,7 @@ public TaskCreator getTaskCreator() {
})
.build().startLoop();
assertEquals(1000, total.get());
}
}*/

private static class MockTaskCreator implements TaskCreator {
@Override
Expand Down

0 comments on commit 3f612fa

Please sign in to comment.