Skip to content

Commit eedab7b

Browse files
committed
Don't use jimfs when testing DocMigratorTest
`copyToRecursively` does not work correctly when copying from Windows paths to jimfs.
1 parent b00a035 commit eedab7b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkl-doc/src/test/kotlin/org/pkl/doc/DocMigratorTest.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717

1818
package org.pkl.doc
1919

20-
import com.google.common.jimfs.Configuration
21-
import com.google.common.jimfs.Jimfs
2220
import java.io.OutputStream
23-
import java.nio.file.FileSystem
2421
import java.nio.file.Files
2522
import java.nio.file.Path
2623
import kotlin.io.path.*
@@ -38,8 +35,6 @@ import org.pkl.core.util.IoUtils
3835

3936
class DocMigratorTest {
4037
companion object {
41-
private val tempFileSystem: FileSystem by lazy { Jimfs.newFileSystem(Configuration.unix()) }
42-
4338
private val projectDir = FileTestUtils.rootProjectDir.resolve("pkl-doc")
4439

4540
private val inputDir: Path by lazy {
@@ -53,7 +48,7 @@ class DocMigratorTest {
5348
}
5449

5550
private val actualOutputDir: Path by lazy {
56-
tempFileSystem.getPath("/work/output").createDirectories()
51+
Files.createTempDirectory("docMigratorTest")
5752
}
5853

5954
private val actualOutputFiles: List<Path> by lazy { actualOutputDir.listFilesRecursively() }

0 commit comments

Comments
 (0)