Skip to content

Commit

Permalink
chore(tests): remove extraneous waitForFxEvents calls (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
keturn authored Nov 15, 2020
1 parent f23af05 commit 87b6df1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/test/java/org/terasology/launcher/game/TestRunGameTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ public void testGameExitSuccessful() throws InterruptedException, ExecutionExcep

executor.submit(gameTask);

WaitForAsyncUtils.waitForFxEvents();

gameTask.get();

hasExitMessage.assertObservation(100, TimeUnit.MILLISECONDS);
Expand All @@ -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));
Expand All @@ -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));
Expand All @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit 87b6df1

Please sign in to comment.