Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-06 00:00:47 +01:00
Fix flaky obtainTasksFromPlugin() test
Dieser Commit ist enthalten in:
Ursprung
92ae25b8ac
Commit
40b76c6332
@ -76,12 +76,12 @@ class VelocitySchedulerTest {
|
|||||||
|
|
||||||
scheduler.buildTask(FakePluginManager.PLUGIN_A, task -> {
|
scheduler.buildTask(FakePluginManager.PLUGIN_A, task -> {
|
||||||
runningLatch.countDown();
|
runningLatch.countDown();
|
||||||
task.cancel();
|
|
||||||
try {
|
try {
|
||||||
endingLatch.await();
|
endingLatch.await();
|
||||||
} catch (InterruptedException ignored) {
|
} catch (InterruptedException ignored) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
|
task.cancel();
|
||||||
}).delay(50, TimeUnit.MILLISECONDS)
|
}).delay(50, TimeUnit.MILLISECONDS)
|
||||||
.repeat(Duration.ofMillis(5))
|
.repeat(Duration.ofMillis(5))
|
||||||
.schedule();
|
.schedule();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren