Skip to content

Commit c29036a

Browse files
committed
add test for closing running worker
1 parent 545f763 commit c29036a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/smoke/call/engine/julia/julia.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ Deno.test("status with server and worker running", () => {
8181
assertStdoutIncludes(status_output, "workers active: 1");
8282
});
8383

84+
Deno.test("closing a running worker", () => {
85+
const close_output = new Deno.Command(
86+
quartoDevCmd(),
87+
{args: ["call", "engine", "julia", "close", sleepQmd]}
88+
).outputSync();
89+
assertSuccess(close_output);
90+
assertStderrIncludes(close_output, "Worker closed successfully");
91+
92+
const status_output = new Deno.Command(
93+
quartoDevCmd(),
94+
{args: ["call", "engine", "julia", "status"]}
95+
).outputSync();
96+
assertSuccess(status_output);
97+
assertStdoutIncludes(status_output, "workers active: 0");
98+
});
99+
84100
Deno.test("log exists", () => {
85101
const log_output = new Deno.Command(
86102
quartoDevCmd(),

0 commit comments

Comments
 (0)