Skip to content

Commit 7c847c2

Browse files
committed
no need to yield
1 parent b9f14ea commit 7c847c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e-azuremanaged/orchestration.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,10 @@ describe("Durable Task Scheduler (DTS) E2E Tests", () => {
399399
it("should retry sub-orchestration and succeed after transient failures", async () => {
400400
let attemptCount = 0;
401401

402+
// eslint-disable-next-line require-yield
402403
const flakySubOrchestrator: TOrchestrator = async function* (_ctx: OrchestrationContext, input: number): any {
403404
attemptCount++;
404405
if (attemptCount < 2) {
405-
yield; // Required for generator
406406
throw new Error(`Sub-orchestration transient failure on attempt ${attemptCount}`);
407407
}
408408
return input * 3;
@@ -436,9 +436,9 @@ describe("Durable Task Scheduler (DTS) E2E Tests", () => {
436436
it("should fail sub-orchestration after exhausting all retry attempts", async () => {
437437
let attemptCount = 0;
438438

439+
// eslint-disable-next-line require-yield
439440
const alwaysFailsSubOrchestrator: TOrchestrator = async function* (_ctx: OrchestrationContext): any {
440441
attemptCount++;
441-
yield; // Required for generator
442442
throw new Error(`Sub-orchestration permanent failure on attempt ${attemptCount}`);
443443
};
444444

0 commit comments

Comments
 (0)