From d97d51f868a866395c830dead4a654ce1a1bc0d1 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Tue, 2 Jan 2024 09:20:58 +0100 Subject: [PATCH] fix: tests --- .../__tests__/integration/with-hosts-cache-drivers.test.ts | 2 +- packages/transporter/src/__tests__/unit/stackTrace.test.ts | 2 +- packages/transporter/src/__tests__/unit/timeouts.test.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts b/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts index 8b56671f1..db77159e3 100644 --- a/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts +++ b/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts @@ -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, diff --git a/packages/transporter/src/__tests__/unit/stackTrace.test.ts b/packages/transporter/src/__tests__/unit/stackTrace.test.ts index 0254a00a1..a55e001e2 100644 --- a/packages/transporter/src/__tests__/unit/stackTrace.test.ts +++ b/packages/transporter/src/__tests__/unit/stackTrace.test.ts @@ -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, }); diff --git a/packages/transporter/src/__tests__/unit/timeouts.test.ts b/packages/transporter/src/__tests__/unit/timeouts.test.ts index ee7454bc5..ac42c7589 100644 --- a/packages/transporter/src/__tests__/unit/timeouts.test.ts +++ b/packages/transporter/src/__tests__/unit/timeouts.test.ts @@ -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({ @@ -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({ @@ -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({