This commit is contained in:
Tatyana Kostromskaya 2023-10-05 13:10:00 +02:00
parent 317b5f36ae
commit 9a43814785
8 changed files with 24 additions and 19 deletions

View file

@ -68,7 +68,7 @@ describe('retry-helper tests', () => {
it('all attempts fail succeeds', async () => {
let attempts = 0
let error: Error = (null as unknown) as Error
let error: Error = null as unknown as Error
try {
await retryHelper.execute(() => {
throw new Error(`some error ${++attempts}`)