Skip to content

Commit

Permalink
test: terminate workers
Browse files Browse the repository at this point in the history
  • Loading branch information
jlong145 committed Oct 17, 2024
1 parent 138a37e commit f0ece21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/instance_wrapper_runtime_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ Deno.test("Timeout should kill worker if there is no response", async () => {
}

assertEquals(inst.pool!.threads.length, 4);
inst.terminateWorker();
});

Deno.test("Timeout should kill worker and Pool should create new worker on next execution call", async () => {
Expand All @@ -187,4 +188,6 @@ Deno.test("Timeout should kill worker and Pool should create new worker on next
await task;

assertEquals(inst.pool!.threads.length, 1);

inst.terminateWorker();
});

0 comments on commit f0ece21

Please sign in to comment.