Skip to content

Commit

Permalink
#3673: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
twschiller committed Jun 13, 2022
1 parent 27be3b9 commit 894676d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blocks/transformers/controlFlow/Retry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ describe("Retry", () => {
},
};

expect(
return expect(
reducePipeline(pipeline, simpleInput({}), testOptions("v3"))
).rejects.toReject();
).rejects.toThrow();
});

test("returns result on success", async () => {
Expand Down
1 change: 1 addition & 0 deletions src/blocks/transformers/controlFlow/Retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class Retry extends Transformer {

while (retryCount < maxRetries) {
if (retryCount > 0) {
// eslint-disable-next-line no-await-in-loop -- retry loop
await sleep(intervalMillis);
}

Expand Down

0 comments on commit 894676d

Please sign in to comment.