Skip to content

Commit 494b172

Browse files
committed
linting
1 parent 21b72f2 commit 494b172

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

packages/durabletask-js/test/orchestration_executor.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ describe("Orchestration Executor", () => {
865865

866866
// Step 1: Start orchestration
867867
let executor = new OrchestrationExecutor(registry);
868-
let allEvents = [
868+
const allEvents = [
869869
newOrchestratorStartedEvent(startTime),
870870
newExecutionStartedEvent(name, TEST_INSTANCE_ID, JSON.stringify(21)),
871871
];
@@ -931,7 +931,7 @@ describe("Orchestration Executor", () => {
931931

932932
// Step 1: Start orchestration
933933
let executor = new OrchestrationExecutor(registry);
934-
let allEvents = [
934+
const allEvents = [
935935
newOrchestratorStartedEvent(startTime),
936936
newExecutionStartedEvent(name, TEST_INSTANCE_ID, JSON.stringify(21)),
937937
];

packages/durabletask-js/test/retry-policy.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
import { RetryPolicy } from "../src/task/retry/retry-policy";

packages/durabletask-js/test/retryable-task.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
import { RetryableTask } from "../src/task/retryable-task";

test/e2e-azuremanaged/orchestration.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +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-
const flakySubOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext, input: number): any {
402+
const flakySubOrchestrator: TOrchestrator = async function* (_ctx: OrchestrationContext, input: number): any {
403403
attemptCount++;
404404
if (attemptCount < 2) {
405+
yield; // Required for generator
405406
throw new Error(`Sub-orchestration transient failure on attempt ${attemptCount}`);
406407
}
407408
return input * 3;
@@ -435,8 +436,9 @@ describe("Durable Task Scheduler (DTS) E2E Tests", () => {
435436
it("should fail sub-orchestration after exhausting all retry attempts", async () => {
436437
let attemptCount = 0;
437438

438-
const alwaysFailsSubOrchestrator: TOrchestrator = async function* (ctx: OrchestrationContext): any {
439+
const alwaysFailsSubOrchestrator: TOrchestrator = async function* (_ctx: OrchestrationContext): any {
439440
attemptCount++;
441+
yield; // Required for generator
440442
throw new Error(`Sub-orchestration permanent failure on attempt ${attemptCount}`);
441443
};
442444

0 commit comments

Comments
 (0)