@@ -89,7 +89,7 @@ describe('page router', () => {
89
89
)
90
90
91
91
// wait to have page regenerated in the background
92
- await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 500 ) )
92
+ await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 1000 ) )
93
93
94
94
const call2 = await invokeFunction ( ctx , { url : 'static/revalidate-automatic' } )
95
95
const call2Date = load ( call2 . body ) ( '[data-testid="date-now"]' ) . text ( )
@@ -145,7 +145,7 @@ describe('page router', () => {
145
145
)
146
146
147
147
// it does not wait for the cache.set so we have to manually wait here until the blob storage got populated
148
- await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 500 ) )
148
+ await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 1000 ) )
149
149
150
150
// now the page should be in cache again and we should get a cache hit
151
151
const call4 = await invokeFunction ( ctx , { url : 'static/revalidate-automatic' } )
@@ -227,7 +227,7 @@ describe('app router', () => {
227
227
expect ( staleDate , 'the date was cached and is matching the initial one' ) . not . toBe ( post1Date )
228
228
229
229
// it does not wait for the cache.set so we have to manually wait here until the blob storage got populated
230
- await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 500 ) )
230
+ await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 1000 ) )
231
231
232
232
// now the page should be in cache again and we should get a cache hit
233
233
const cached = await invokeFunction ( ctx , { url : 'posts/1' } )
@@ -299,7 +299,7 @@ describe('route', () => {
299
299
)
300
300
301
301
// it does not wait for the cache.set so we have to manually wait here until the blob storage got populated
302
- await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 500 ) )
302
+ await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 1000 ) )
303
303
304
304
const call2 = await invokeFunction ( ctx , { url : '/api/revalidate-handler' } )
305
305
const call2Body = JSON . parse ( call2 . body )
@@ -337,7 +337,7 @@ describe('route', () => {
337
337
) . toBe ( call3Time )
338
338
339
339
// it does not wait for the cache.set so we have to manually wait here until the blob storage got populated
340
- await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 500 ) )
340
+ await new Promise < void > ( ( resolve ) => setTimeout ( resolve , 1000 ) )
341
341
342
342
const call4 = await invokeFunction ( ctx , { url : '/api/revalidate-handler' } )
343
343
expect ( call4 . statusCode ) . toBe ( 200 )
0 commit comments