diff --git a/src/test/java/org/terasology/launcher/game/TestRunGameTask.java b/src/test/java/org/terasology/launcher/game/TestRunGameTask.java index b42345571..c3cacf6c3 100644 --- a/src/test/java/org/terasology/launcher/game/TestRunGameTask.java +++ b/src/test/java/org/terasology/launcher/game/TestRunGameTask.java @@ -115,8 +115,6 @@ public void testGameExitSuccessful() throws InterruptedException, ExecutionExcep executor.submit(gameTask); - WaitForAsyncUtils.waitForFxEvents(); - gameTask.get(); hasExitMessage.assertObservation(100, TimeUnit.MILLISECONDS); @@ -137,8 +135,6 @@ public void testGameExitError() throws InterruptedException { executor.submit(gameTask); - WaitForAsyncUtils.waitForFxEvents(); - var thrown = assertThrows(ExecutionException.class, gameTask::get); Throwable exc = thrown.getCause(); assertThat(exc, instanceOf(RunGameTask.GameExitError.class)); @@ -153,8 +149,6 @@ public void testBadStarter() { executor.submit(gameTask); - WaitForAsyncUtils.waitForFxEvents(); - var thrown = assertThrows(ExecutionException.class, gameTask::get); Throwable exc = thrown.getCause(); assertThat(exc, instanceOf(RunGameTask.GameStartError.class)); @@ -168,8 +162,6 @@ public void testExeNotFound() { executor.submit(gameTask); - WaitForAsyncUtils.waitForFxEvents(); - var thrown = assertThrows(ExecutionException.class, gameTask::get); Throwable exc = thrown.getCause(); assertThat(exc, instanceOf(RunGameTask.GameStartError.class)); @@ -188,8 +180,6 @@ public void testTerminatedProcess() { executor.submit(gameTask); - WaitForAsyncUtils.waitForFxEvents(); - var thrown = assertThrows(ExecutionException.class, gameTask::get); Throwable exc = thrown.getCause(); assertThat(exc, instanceOf(RunGameTask.GameExitError.class));