Skip to content

Commit

Permalink
fix(HMCLCore): do not init JavaFX in JTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
huanghongxun committed Jun 16, 2023
1 parent 6133e7e commit 470c3d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void testWithCompose() {
public void testThenAccept() {
AtomicBoolean flag = new AtomicBoolean();
boolean result = Task.supplyAsync(JavaVersion::fromCurrentEnvironment)
.thenAcceptAsync(Schedulers.javafx(), javaVersion -> {
.thenAcceptAsync(Schedulers.io(), javaVersion -> {
flag.set(true);
assertEquals(javaVersion, JavaVersion.fromCurrentEnvironment());
})
Expand Down

0 comments on commit 470c3d6

Please sign in to comment.