Skip to content

Commit e7ca1c0

Browse files
committed
Unlink the native OpenCLI fixture junction before temporary cleanup
1 parent 246c514 commit e7ca1c0

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/test/java/io/github/easy4j/opencli/contract/OpenCliCapabilityOverrideIT.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ void localAndPluginOverridesRefreshWithoutClaimingOriginOrExecutingHandler(@Temp
6262
Files.delete(plugin);
6363
assertEquals(local.getHelpSha256(), discover(client).getHelpSha256());
6464
assertFalse(Files.exists(marker), "metadata discovery must not invoke the adapter handler");
65+
} finally {
66+
// Unlink the installed-package junction before JUnit walks the temporary home on Windows JDK 8.
67+
Files.deleteIfExists(home.resolve(".opencli/node_modules/@jackwener/opencli"));
6568
}
6669
}
6770

‎src/test/java/io/github/easy4j/opencli/contract/OpenCliReadOnlyDiagnosticsIT.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ void diagnosticsBypassTheOpenCliStartupHook(@TempDir Path home) throws IOExcepti
6565
Files.delete(marker);
6666
assertEquals(Status.STALE, client.diagnose().observation(Check.STRUCTURED_HELP).getStatus());
6767
assertFalse(Files.exists(marker));
68+
} finally {
69+
// Unlink the installed-package junction before JUnit walks the temporary home on Windows JDK 8.
70+
Files.deleteIfExists(home.resolve(".opencli/node_modules/@jackwener/opencli"));
6871
}
6972
}
7073

0 commit comments

Comments
 (0)