Skip to content

Commit 8dc062e

Browse files
committed
fix: remove unused onCancel method from our custom VitestTestRunner
1 parent c5f7909 commit 8dc062e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/vitest-pool-workers/src/worker/lib/cloudflare/test-runner.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { vi } from "vitest";
1212
import { VitestTestRunner } from "vitest/runners";
1313
import workerdUnsafe from "workerd:unsafe";
14-
import type { CancelReason, Suite, Test } from "@vitest/runner";
14+
import type { Suite, Test } from "@vitest/runner";
1515
import type { SerializedConfig, WorkerGlobalState, WorkerRPC } from "vitest";
1616

1717
// When `DEBUG` is `true`, runner operations will be logged and slowed down
@@ -355,12 +355,4 @@ export default class WorkersTestRunner extends VitestTestRunner {
355355

356356
return super.onAfterTryTask(test);
357357
}
358-
359-
async onCancel(reason: CancelReason) {
360-
if (DEBUG) {
361-
__console.log(`onCancel: ${reason}`);
362-
await scheduler.wait(100);
363-
}
364-
return super.onCancel(reason);
365-
}
366358
}

0 commit comments

Comments
 (0)