Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jan 2, 2024
1 parent b16c74c commit d97d51f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('hosts cache integration with cache drivers', () => {

const message =
// eslint-disable-next-line max-len
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.';
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.';

await expect(transporter.read(transporterRequest)).rejects.toMatchObject({
message,
Expand Down
2 changes: 1 addition & 1 deletion packages/transporter/src/__tests__/unit/stackTrace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('transporter stack trace serialization', () => {
await expect(transporter.read(transporterRequest)).rejects.toEqual({
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
transporterStackTrace,
});

Expand Down
6 changes: 3 additions & 3 deletions packages/transporter/src/__tests__/unit/timeouts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('the timeouts selection', () => {
await expect(transporter.read(transporterRequest)).rejects.toMatchObject({
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
});

assertRequest({
Expand All @@ -111,7 +111,7 @@ describe('the timeouts selection', () => {
await expect(transporter.read(transporterRequest)).rejects.toMatchObject({
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
});

assertRequest({
Expand Down Expand Up @@ -142,7 +142,7 @@ describe('the timeouts selection', () => {
await expect(transporter.read(transporterRequest)).rejects.toMatchObject({
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
});

assertRequest({
Expand Down

0 comments on commit d97d51f

Please sign in to comment.