mirror of
https://github.com/apple/pkl.git
synced 2026-09-12 12:52:00 +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())
|
||||
assertThat(ExecutorOptions.defaultModuleCacheDir(home, false, mapOf()))
|
||||
.isEqualTo(home.resolve(".cache").resolve("pkl"))
|
||||
assertThat(ExecutorOptions.defaultModuleCacheDir(home, false, mapOf()))
|
||||
assertThat(ExecutorOptions.defaultModuleCacheDir())
|
||||
.isEqualTo(IoUtils.getSystemModuleCacheDir())
|
||||
} finally {
|
||||
System.setProperty("user.home", original)
|
||||
|
||||
Reference in New Issue
Block a user