Skip to content

Commit

Permalink
Shut down JavaFX after tests finish
Browse files Browse the repository at this point in the history
  • Loading branch information
ausbin committed Sep 9, 2023
1 parent 56a0e5d commit b689440
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import java.util.SortedSet;
import java.util.TreeSet;

import javafx.application.Platform;

import com.ra4king.circuitsim.gui.CircuitSimRunner.NativeLibraryExtractor;

import org.junit.platform.launcher.Launcher;
Expand Down Expand Up @@ -48,6 +50,9 @@ public static void launch(String pkg, String[] args) {
String testClassName = args[1];
exitCode = zucchiniRun(pkg, testClassName);
}

// Exit JavaFX, hopefully to stop the grader from hanging
Platform.exit();
}

System.exit(exitCode);
Expand Down

0 comments on commit b689440

Please sign in to comment.