Fix failing test on Windows (#1858)
This commit is contained in:
1 parent
574ad844f3
commit
8fba228790
1 file changed
+2
-2
@@ -30,9 +30,9 @@ class ExecutorOptionsTest {
|
||||
val original = System.getProperty("user.home")
|
||||
try {
|
||||
System.setProperty("user.home", home.toString())
|
||||
assertThat(ExecutorOptions.defaultModuleCacheDir())
|
||||
assertThat(ExecutorOptions.defaultModuleCacheDir(home, false, mapOf()))
|
||||
.isEqualTo(home.resolve(".cache").resolve("pkl"))
|
||||
assertThat(ExecutorOptions.defaultModuleCacheDir())
|
||||
assertThat(ExecutorOptions.defaultModuleCacheDir(home, false, mapOf()))
|
||||
.isEqualTo(IoUtils.getSystemModuleCacheDir())
|
||||
} finally {
|
||||
System.setProperty("user.home", original)
|
||||
|
||||
Reference in new issue
Block a user