Skip to content

Commit b2cf9e3

Browse files
committed
createLibrary should be in a writeTask
1 parent 298781d commit b2cf9e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/kotlin/com/demonwav/mcdev/platform/mixin/BaseMixinTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ abstract class BaseMixinTest : BaseMinecraftTest(PlatformType.MIXIN) {
2525
override fun setUp() {
2626
super.setUp()
2727

28-
library = createLibrary(project, "mixin")
2928
ModuleRootModificationUtil.updateModel(myModule) { model ->
29+
runWriteTask {
30+
library = createLibrary(project, "mixin")
31+
}
3032
model.addLibraryEntry(library ?: throw IllegalStateException("Library not created"))
3133
}
3234
}

0 commit comments

Comments
 (0)