We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3e782 commit bae8de6Copy full SHA for bae8de6
test/seam/connect/retry.test.ts
@@ -6,17 +6,19 @@ import { SeamHttp } from '@seamapi/http/connect'
6
7
test('SeamHttp: retries 503 status errors twice by default ', async (t) => {
8
const { seed, endpoint, db } = await getTestServer(t)
9
+ const expectedRetryCount = 2
10
11
db.simulateWorkspaceOutage(seed.seed_workspace_1, {
12
routes: ['/devices/get'],
13
})
14
- t.plan(4)
15
+ t.plan(expectedRetryCount + 2)
16
+
17
const seam = SeamHttp.fromApiKey(seed.seam_apikey1_token, {
18
endpoint,
19
axiosRetryOptions: {
20
onRetry: (retryCount) => {
- t.true(retryCount < 3)
21
+ t.true(retryCount <= expectedRetryCount)
22
},
23
24
0 commit comments