@@ -23,7 +23,6 @@ import { TaskHubGrpcWorker } from "../../src/worker/task-hub-grpc-worker";
2323
2424// Read environment variables
2525const endpoint = process . env . ENDPOINT || "localhost:8080" ;
26- const _taskHub = process . env . TASKHUB || "default" ;
2726
2827describe ( "Durable Task Scheduler (DTS) E2E Tests" , ( ) => {
2928 let taskHubClient : TaskHubGrpcClient ;
@@ -169,9 +168,9 @@ describe("Durable Task Scheduler (DTS) E2E Tests", () => {
169168
170169 // Send events to the client immediately
171170 const id = await taskHubClient . scheduleNewOrchestration ( orchestrator ) ;
172- taskHubClient . raiseOrchestrationEvent ( id , "A" , "a" ) ;
173- taskHubClient . raiseOrchestrationEvent ( id , "B" , "b" ) ;
174- taskHubClient . raiseOrchestrationEvent ( id , "C" , "c" ) ;
171+ await taskHubClient . raiseOrchestrationEvent ( id , "A" , "a" ) ;
172+ await taskHubClient . raiseOrchestrationEvent ( id , "B" , "b" ) ;
173+ await taskHubClient . raiseOrchestrationEvent ( id , "C" , "c" ) ;
175174 const state = await taskHubClient . waitForOrchestrationCompletion ( id , undefined , 30 ) ;
176175
177176 expect ( state ) . toBeDefined ( ) ;
0 commit comments