Fix CI on Windows (#1861)
Fix bad assertion: `IoUtils.getSystemModuleCacheDir()` uses the actual OS env, but the test hard-codes `isWindows` to false.
This commit is contained in:
1 parent
8fba228790
commit
9b52a4fd82
1 file changed
+1
-1
@@ -32,7 +32,7 @@ class ExecutorOptionsTest {
|
|||||||
System.setProperty("user.home", home.toString())
|
System.setProperty("user.home", home.toString())
|
||||||
assertThat(ExecutorOptions.defaultModuleCacheDir(home, false, mapOf()))
|
assertThat(ExecutorOptions.defaultModuleCacheDir(home, false, mapOf()))
|
||||||
.isEqualTo(home.resolve(".cache").resolve("pkl"))
|
.isEqualTo(home.resolve(".cache").resolve("pkl"))
|
||||||
assertThat(ExecutorOptions.defaultModuleCacheDir(home, false, mapOf()))
|
assertThat(ExecutorOptions.defaultModuleCacheDir())
|
||||||
.isEqualTo(IoUtils.getSystemModuleCacheDir())
|
.isEqualTo(IoUtils.getSystemModuleCacheDir())
|
||||||
} finally {
|
} finally {
|
||||||
System.setProperty("user.home", original)
|
System.setProperty("user.home", original)
|
||||||
|
|||||||
Reference in new issue
Block a user