Skip to content

Commit

Permalink
feat: better error for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bferenc committed Feb 26, 2025
1 parent 5d3de55 commit 6c94c59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/background/services/appcheck/AppCheckService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ describe('AppCheckService', () => {
.mocked(CustomProvider)
.mock.calls[0]?.[0].getToken()
.catch((err) => {
expect(err).toBe('timeout');
expect(err).toBe('[AppCheck] challenge solution timeout');
});

for (let i = 0; i <= WAIT_FOR_CHALLENGE_ATTEMPT_COUNT; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/background/services/appcheck/AppCheckService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class AppCheckService {
res({ registrationId, solution });
} else if (remainingAttempts < 1) {
clearInterval(timer);
rej('timeout');
rej('[AppCheck] challenge solution timeout');
}
}, WAIT_FOR_CHALLENGE_DELAY_MS);
},
Expand Down

0 comments on commit 6c94c59

Please sign in to comment.