Skip to content

Commit 1d47f80

Browse files
committed
test: align retry failure expectation with detailed fallback message
1 parent 3ab2990 commit 1d47f80

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

frontend/src/__tests__/useFeedConversion.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,13 @@ describe('useFeedConversion', () => {
450450
}
451451
});
452452

453-
expect(thrownError?.message).toBe('Tried faraday first, then browserless. Browserless also failed');
453+
expect(thrownError?.message).toBe(
454+
'Tried faraday first, then browserless. First attempt failed with: Upstream timeout. Second attempt failed with: Browserless also failed'
455+
);
454456
expect(thrownError?.manualRetryStrategy).toBeUndefined();
455457
expect(result.current.result).toBeNull();
456-
expect(result.current.error).toBe('Tried faraday first, then browserless. Browserless also failed');
458+
expect(result.current.error).toBe(
459+
'Tried faraday first, then browserless. First attempt failed with: Upstream timeout. Second attempt failed with: Browserless also failed'
460+
);
457461
});
458462
});

0 commit comments

Comments
 (0)