@@ -3,7 +3,7 @@ import { simpleTask, taskDefinition, WorkflowExecutor } from "../../src/core";
33import { orkesConductorClient } from "../../src/orkes" ;
44import { TaskManager , ConductorWorker } from "../../src/task/index" ;
55import { mockLogger } from "../utils/mockLogger" ;
6- import { TestUtil } from "../utils/test-util " ;
6+ import { waitForWorkflowCompletion } from "../utils/waitForWorkflowCompletion " ;
77
88
99const BASE_TIME = 1000 ;
@@ -51,7 +51,7 @@ describe("TaskManager", () => {
5151 version : 1 ,
5252 } ) ;
5353
54- const workflowStatus = await TestUtil . waitForWorkflowCompletion ( executor , executionId , BASE_TIME * 30 ) ;
54+ const workflowStatus = await waitForWorkflowCompletion ( executor , executionId , BASE_TIME * 30 ) ;
5555
5656 expect ( workflowStatus . status ) . toEqual ( "COMPLETED" ) ;
5757
@@ -103,7 +103,7 @@ describe("TaskManager", () => {
103103 correlationId : `${ workflowName } -id`
104104 } ) ;
105105
106- const workflowStatus = await TestUtil . waitForWorkflowCompletion ( executor , status , BASE_TIME * 30 ) ;
106+ const workflowStatus = await waitForWorkflowCompletion ( executor , status , BASE_TIME * 30 ) ;
107107
108108 expect ( workflowStatus . status ) . toEqual ( "FAILED" ) ;
109109 expect ( mockErrorHandler ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -152,7 +152,7 @@ describe("TaskManager", () => {
152152 correlationId : `${ workflowName } -id`
153153 } ) ;
154154
155- const workflowStatus = await TestUtil . waitForWorkflowCompletion ( executor , executionId ! , BASE_TIME * 30 ) ;
155+ const workflowStatus = await waitForWorkflowCompletion ( executor , executionId ! , BASE_TIME * 30 ) ;
156156 expect ( workflowStatus . status ) . toEqual ( "FAILED" ) ;
157157 await manager . stopPolling ( ) ;
158158 } ) ;
@@ -217,7 +217,7 @@ describe("TaskManager", () => {
217217 // decrease speed again
218218 manager . updatePollingOptions ( { pollInterval : BASE_TIME , concurrency : 1 } ) ;
219219
220- const workflowStatus = await TestUtil . waitForWorkflowCompletion ( executor , executionId , BASE_TIME * 30 ) ;
220+ const workflowStatus = await waitForWorkflowCompletion ( executor , executionId , BASE_TIME * 30 ) ;
221221
222222 expect ( workflowStatus . status ) . toEqual ( "COMPLETED" ) ;
223223 await manager . stopPolling ( ) ;
@@ -343,7 +343,7 @@ describe("TaskManager", () => {
343343 // decrease speed again
344344 manager . updatePollingOptions ( { pollInterval : BASE_TIME , concurrency : 1 } ) ;
345345
346- const workflowStatus = await TestUtil . waitForWorkflowCompletion ( executor , executionId , BASE_TIME * 30 ) ;
346+ const workflowStatus = await waitForWorkflowCompletion ( executor , executionId , BASE_TIME * 30 ) ;
347347
348348 expect ( workflowStatus . status ) . toEqual ( "COMPLETED" ) ;
349349 await manager . stopPolling ( ) ;
0 commit comments