File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
packages/vitest-pool-workers/src/worker/lib/cloudflare Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
1111import { vi } from "vitest" ;
1212import { VitestTestRunner } from "vitest/runners" ;
1313import workerdUnsafe from "workerd:unsafe" ;
14- import type { CancelReason , Suite , Test } from "@vitest/runner" ;
14+ import type { Suite , Test } from "@vitest/runner" ;
1515import 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}
You can’t perform that action at this time.
0 commit comments