Skip to content

Commit

Permalink
fix: tests adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawSwiderski committed Dec 18, 2024
1 parent 413b720 commit 263fdf3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ tasks {
}

test {
jvmArgs = listOf(
"-Didea.force.default.filesystem=true",
"-Dwsl.use.remote.agent.for.nio.filesystem=false"
)
useJUnitPlatform()
// Creating `.idea` directory so that `saveSdkImportConfig` task will be executed
file(".idea").mkdir()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.pswidersk.sdkimportplugin

import com.intellij.execution.wsl.ijent.nio.toggle.IjentWslNioFsVmOptionsSetter
import com.intellij.ide.impl.OpenProjectTask
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ex.ProjectManagerEx
Expand All @@ -9,11 +8,6 @@ import com.intellij.testFramework.junit5.fixture.testFixture
import java.nio.file.Files

fun customProjectFixture(): TestFixture<Project> = testFixture {
IjentWslNioFsVmOptionsSetter.ensureInVmOptionsImpl(
isEnabled = false,
forceProductionOptions = true,
isEnabledByDefault = false,
getOptionByPrefix = { d -> "-Didea.force.default.filesystem=true" })
val openProjectTask = OpenProjectTask.build()
val path = Files.createTempDirectory("IJ")
val project = ProjectManagerEx.getInstanceEx().newProjectAsync(path, openProjectTask)
Expand Down

0 comments on commit 263fdf3

Please sign in to comment.