Skip to content

Commit 5abdd55

Browse files
committed
Merge pull request #12 from thomasnield/0.x
Attempt to resolve unit test failures
2 parents 487c80a + f2e4b15 commit 5abdd55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/test/java/rx/schedulers/JavaFxSchedulerTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import javafx.application.Application;
1919
import javafx.application.Platform;
20+
import javafx.embed.swing.JFXPanel;
2021
import javafx.stage.Stage;
2122
import org.junit.BeforeClass;
2223
import org.junit.Rule;
@@ -64,13 +65,15 @@ public void start(Stage primaryStage) throws Exception {
6465

6566
@BeforeClass
6667
public static void initJFX() {
67-
Thread t = new Thread("JavaFX Init Thread") {
68+
/*Thread t = new Thread("JavaFX Init Thread") {
6869
public void run() {
6970
Application.launch(AsNonApp.class, new String[0]);
7071
}
7172
};
7273
t.setDaemon(true);
73-
t.start();
74+
t.start();*/
75+
//use panel to initialize JavaFX thread
76+
JFXPanel panel = new JFXPanel();
7477
}
7578

7679
@Test

0 commit comments

Comments
 (0)