mirror of
https://github.com/apple/pkl.git
synced 2026-09-12 21:01:59 +02:00
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:
@@ -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