Skip to content

Commit 3502ba5

Browse files
feat: added executor tests
1 parent 2edc3db commit 3502ba5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/exec.tests.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,29 @@ export async function runExecutorTests(writeOutput) {
9797
runner.test("start/stop() (BackgroundExecutor)", async (test) => {
9898
let stdout = "";
9999

100-
const uuid = await Executor.start("sh", (type, data) => {
100+
const uuid = await Executor.BackgroundExecutor.start("sh", (type, data) => {
101101

102102
});
103103

104104
await new Promise(r => setTimeout(r, 200));
105105

106106

107107

108-
const isRunning = await Executor.isRunning(uuid);
108+
const isRunning = await Executor.BackgroundExecutor.isRunning(uuid);
109109

110110
test.assert(isRunning === true, "Executor must be running");
111111

112112

113113
await new Promise(r => setTimeout(r, 200));
114114

115115

116-
await Executor.stop(uuid);
116+
await Executor.BackgroundExecutor.stop(uuid);
117117

118118
await new Promise(r => setTimeout(r, 200));
119119

120120

121-
test.assert(isRunning !== await Executor.isRunning(uuid), "Executor must be stopped");
122-
test.assert(await Executor.isRunning(uuid) === false, "Executor must be stopped");
121+
test.assert(isRunning !== await Executor.BackgroundExecutor.isRunning(uuid), "Executor must be stopped");
122+
test.assert(await Executor.BackgroundExecutor.isRunning(uuid) === false, "Executor must be stopped");
123123

124124
});
125125

0 commit comments

Comments
 (0)