@@ -191,13 +191,6 @@ describe("RunEngine batchTriggerAndWait", () => {
191
191
expect ( batchWaitpoint ?. waitpoint . type ) . toBe ( "BATCH" ) ;
192
192
expect ( batchWaitpoint ?. waitpoint . completedByBatchId ) . toBe ( batch . id ) ;
193
193
194
- await engine . unblockRunForCreatedBatch ( {
195
- runId : parentRun . id ,
196
- batchId : batch . id ,
197
- environmentId : authenticatedEnvironment . id ,
198
- projectId : authenticatedEnvironment . projectId ,
199
- } ) ;
200
-
201
194
//dequeue and start the 1st child
202
195
const dequeuedChild = await engine . dequeueFromMasterQueue ( {
203
196
consumerId : "test_12345" ,
@@ -303,7 +296,7 @@ describe("RunEngine batchTriggerAndWait", () => {
303
296
expect ( child2WaitpointAfter ?. status ) . toBe ( "COMPLETED" ) ;
304
297
expect ( child2WaitpointAfter ?. output ) . toBe ( '{"baz":"qux"}' ) ;
305
298
306
- await setTimeout ( 500 ) ;
299
+ await setTimeout ( 1_000 ) ;
307
300
308
301
const runWaitpointsAfterSecondChild = await prisma . taskRunWaitpoint . findMany ( {
309
302
where : {
@@ -497,13 +490,6 @@ describe("RunEngine batchTriggerAndWait", () => {
497
490
expect ( parentAfterBatchChild . snapshot . executionStatus ) . toBe ( "EXECUTING_WITH_WAITPOINTS" ) ;
498
491
expect ( parentAfterBatchChild . batch ?. id ) . toBe ( batch . id ) ;
499
492
500
- await engine . unblockRunForCreatedBatch ( {
501
- runId : parentRun . id ,
502
- batchId : batch . id ,
503
- environmentId : authenticatedEnvironment . id ,
504
- projectId : authenticatedEnvironment . projectId ,
505
- } ) ;
506
-
507
493
//dequeue and start the batch child
508
494
const dequeuedBatchChild = await engine . dequeueFromMasterQueue ( {
509
495
consumerId : "test_12345" ,
0 commit comments