Skip to content

Commit 8508505

Browse files
Merge pull request #1064 from OpenSourceFellows/SAUMILDHANKAR-patch-3
Update axios-cache-interceptor.test.js
2 parents ad3b90b + 05d80d6 commit 8508505

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/__tests__/integration/axios-cache-interceptor.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ describe('test Axios cache invalidation option', () => {
4242
const axios = Axios.create()
4343
const cache_interceptor = setupCache(axios, { ttl: 10000 })
4444
// we make a simple request
45-
cache_interceptor.get('https://api.publicapis.org/entries')
45+
cache_interceptor.get('https://github.com/OpenSourceFellows/amplify')
4646
// we wait for 11 seconds and make another call
4747
await new Promise((resolve) => setTimeout(() => resolve(), 11000))
48-
const req3 = cache_interceptor.get('https://api.publicapis.org/entries')
48+
const req3 = cache_interceptor.get('https://github.com/OpenSourceFellows/amplify')
4949
const res3 = await req3
5050
// assertions: the second request is expected not to be cached, due to the ttl
5151
expect(res3.cached).toBe(false)

0 commit comments

Comments
 (0)