@@ -227,25 +227,6 @@ describe('e2e tests using OpenWhisk credentials (as env vars)', () => {
227227 expect ( ret . sort ( ) ) . toEqual ( keysNotExpired )
228228 } )
229229
230- test ( 'list while having a large dataset stored' , async ( ) => {
231- // reason: https://github.com/adobe/aio-lib-state/issues/194
232- const state = await initStateEnv ( )
233-
234- const keysBig = genKeyStrings ( 15000 , `${ uniquePrefix } __big_list` ) . sort ( )
235- await putKeys ( state , keysBig , { ttl : 300 } )
236-
237- const keysSmall = genKeyStrings ( 82 , `${ uniquePrefix } __small_list` ) . sort ( )
238- await putKeys ( state , keysSmall , { ttl : 300 } ) // ttl=300s
239-
240- // ensure we can list adhoc data
241- const retArray = [ ]
242- for await ( const { keys } of state . list ( { match : `${ uniquePrefix } __small_list*` , countHint : 100 } ) ) {
243- retArray . push ( ...keys )
244- }
245- // in this test we want to make sure that list works even when many keys are included
246- expect ( retArray . length ) . toEqual ( 82 )
247- } , 300 * 1000 )
248-
249230 test ( 'deleteAll test' , async ( ) => {
250231 const state = await initStateEnv ( )
251232
@@ -312,4 +293,25 @@ describe('e2e tests using OpenWhisk credentials (as env vars)', () => {
312293 code : 'ERROR_PAYLOAD_TOO_LARGE'
313294 } ) )
314295 } )
296+
297+ // this test is slow to execute uncomment if needed
298+ // eslint-disable-next-line jest/no-commented-out-tests
299+ // test('list while having a large dataset stored', async () => {
300+ // // reason: https://github.com/adobe/aio-lib-state/issues/194
301+ // const state = await initStateEnv()
302+
303+ // const keysBig = genKeyStrings(15000, `${uniquePrefix}__big_list`).sort()
304+ // await putKeys(state, keysBig, { ttl: 300 })
305+
306+ // const keysSmall = genKeyStrings(82, `${uniquePrefix}__small_list`).sort()
307+ // await putKeys(state, keysSmall, { ttl: 300 }) // ttl=300s
308+
309+ // // ensure we can list adhoc data
310+ // const retArray = []
311+ // for await (const { keys } of state.list({ match: `${uniquePrefix}__small_list*`, countHint: 100 })) {
312+ // retArray.push(...keys)
313+ // }
314+ // // in this test we want to make sure that list works even when many keys are included
315+ // expect(retArray.length).toEqual(82)
316+ // }, 300 * 1000)
315317} )
0 commit comments