Skip to content

Commit abe2b54

Browse files
committed
Fixed failing test
1 parent a072884 commit abe2b54

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/core/test/taskExecutor.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
import { describe, expect, test } from "vitest";
2+
import { ApiError } from "../src/v3/apiClient/errors.js";
23
import { ConsoleInterceptor } from "../src/v3/consoleInterceptor.js";
34
import {
5+
lifecycleHooks,
46
RetryOptions,
57
RunFnParams,
68
ServerBackgroundWorker,
79
TaskMetadataWithFunctions,
810
TaskRunErrorCodes,
911
TaskRunExecution,
10-
TaskRunExecutionResult,
11-
TaskRunExecutionRetry,
1212
} from "../src/v3/index.js";
13+
import { StandardLifecycleHooksManager } from "../src/v3/lifecycleHooks/manager.js";
1314
import { TracingSDK } from "../src/v3/otel/tracingSDK.js";
1415
import { TriggerTracer } from "../src/v3/tracer.js";
1516
import { TaskExecutor } from "../src/v3/workers/taskExecutor.js";
16-
import { StandardLifecycleHooksManager } from "../src/v3/lifecycleHooks/manager.js";
17-
import { lifecycleHooks } from "../src/v3/index.js";
18-
import { ApiError } from "../src/v3/apiClient/errors.js";
1917

2018
describe("TaskExecutor", () => {
2119
beforeEach(() => {
@@ -1714,7 +1712,7 @@ describe("TaskExecutor", () => {
17141712
id: "test-run-id",
17151713
error: {
17161714
type: "BUILT_IN_ERROR",
1717-
message: `${status} API Error`,
1715+
message: "API Error",
17181716
name: "TriggerApiError",
17191717
stackTrace: expect.any(String),
17201718
},

0 commit comments

Comments
 (0)