mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(LocalRunnerClient): allow injecting action watch path
Context: The hardcoded action watch path made LocalRunnerClient difficult to test and tightened it to a specific runtime layout. Injecting the watch path improves testability and allows the runner to work in different runtime environments.
This commit is contained in:
@@ -41,7 +41,7 @@ public class SystemTest {
|
||||
void localRunnerClientTest() {
|
||||
Map<String, MetaActionInfo> existedMetaActions = new HashMap<>();
|
||||
ExecutorService executor = Executors.newVirtualThreadPerTaskExecutor();
|
||||
RunnerClient client = new LocalRunnerClient(existedMetaActions, executor);
|
||||
RunnerClient client = new LocalRunnerClient(existedMetaActions, executor, null);
|
||||
JSONObject res = client.listSysDependencies();
|
||||
System.out.println(res.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user