Skip to content

Commit fd2f3a9

Browse files
test(remote-projects): 🧪 increase retry attempts and timeout for remote media tests
* Increased `maxRetries` from 3 to 5 and reduced `delayMs` from 2000ms to 1000ms for improved test reliability. * Switched test timeout from `TEST_TIMEOUTS.DEFAULT` to `TEST_TIMEOUTS.LONG` to accommodate longer-running remote operations. Signed-off-by: Justin Wiegmann <wiegmann@e-spirit.com>
1 parent 8da4c13 commit fd2f3a9

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎integrationtests/FSXAProxyApiRemoteProjects.test.ts‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ describe('FSXAProxyAPIRemoteProjects should resolve references', () => {
191191
expect(remoteMedia.description).toEqual(
192192
res.data.pt_pictureRemote.description
193193
)
194-
}, { maxRetries: 3, delayMs: 2000 })
195-
}, TEST_TIMEOUTS.DEFAULT)
194+
}, { maxRetries: 5, delayMs: 1000 })
195+
}, TEST_TIMEOUTS.LONG)
196196

197197
it('local project id != remote project id, local locale == remote locale', async () => {
198198
await init(randomId2, 'de_DE')
@@ -207,8 +207,8 @@ describe('FSXAProxyAPIRemoteProjects should resolve references', () => {
207207
expect(remoteMedia.description).toEqual(
208208
res.data.pt_pictureRemote.description
209209
)
210-
}, { maxRetries: 3, delayMs: 2000 })
211-
}, TEST_TIMEOUTS.DEFAULT)
210+
}, { maxRetries: 5, delayMs: 1000 })
211+
}, TEST_TIMEOUTS.LONG)
212212

213213
it('local project id == remote project id, local locale != remote locale', async () => {
214214
await init(randomId1, 'en_GB')
@@ -223,8 +223,8 @@ describe('FSXAProxyAPIRemoteProjects should resolve references', () => {
223223
expect(remoteMedia.description).toEqual(
224224
res.data.pt_pictureRemote.description
225225
)
226-
}, { maxRetries: 3, delayMs: 2000 })
227-
}, TEST_TIMEOUTS.DEFAULT)
226+
}, { maxRetries: 5, delayMs: 1000 })
227+
}, TEST_TIMEOUTS.LONG)
228228

229229
it('local project id == remote project id, local locale == remote locale', async () => {
230230
await init(randomId1, 'de_DE')
@@ -239,8 +239,8 @@ describe('FSXAProxyAPIRemoteProjects should resolve references', () => {
239239
expect(res.data.pt_pictureRemote.description).toEqual(
240240
res.data.pt_pictureLocal.description
241241
)
242-
}, { maxRetries: 3, delayMs: 2000 })
243-
}, TEST_TIMEOUTS.DEFAULT)
242+
}, { maxRetries: 5, delayMs: 1000 })
243+
}, TEST_TIMEOUTS.LONG)
244244

245245
it('local project id == remote project id, local locale == remote locale, different media Ids', async () => {
246246
await init(randomId1, 'de_DE', true)
@@ -257,8 +257,8 @@ describe('FSXAProxyAPIRemoteProjects should resolve references', () => {
257257
expect(remoteMedia.description).toEqual(
258258
res.data.pt_pictureRemote.description
259259
)
260-
}, { maxRetries: 3, delayMs: 2000 })
261-
}, TEST_TIMEOUTS.DEFAULT)
260+
}, { maxRetries: 5, delayMs: 1000 })
261+
}, TEST_TIMEOUTS.LONG)
262262

263263
it('Dataset references on metadata of remote media should be fetchable', async () => {
264264
await init(randomId2, 'en_GB')
@@ -271,6 +271,6 @@ describe('FSXAProxyAPIRemoteProjects should resolve references', () => {
271271
expect(res.data.pt_pictureRemote.meta.md_dataset.id).toEqual(
272272
dataset.identifier
273273
)
274-
}, { maxRetries: 3, delayMs: 2000 })
275-
}, TEST_TIMEOUTS.DEFAULT)
274+
}, { maxRetries: 5, delayMs: 1000 })
275+
}, TEST_TIMEOUTS.LONG)
276276
})

0 commit comments

Comments
 (0)