Skip to content

Commit 470c3d6

Browse files
committed
fix(HMCLCore): do not init JavaFX in JTest.
1 parent 6133e7e commit 470c3d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HMCLCore/src/test/java/org/jackhuang/hmcl/util/TaskTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void testWithCompose() {
8080
public void testThenAccept() {
8181
AtomicBoolean flag = new AtomicBoolean();
8282
boolean result = Task.supplyAsync(JavaVersion::fromCurrentEnvironment)
83-
.thenAcceptAsync(Schedulers.javafx(), javaVersion -> {
83+
.thenAcceptAsync(Schedulers.io(), javaVersion -> {
8484
flag.set(true);
8585
assertEquals(javaVersion, JavaVersion.fromCurrentEnvironment());
8686
})

0 commit comments

Comments
 (0)