@@ -227,42 +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-
249- test ( 'deleteAll test' , async ( ) => {
250- const state = await initStateEnv ( )
251-
252- // < 100 keys
253- const keys90 = genKeyStrings ( 90 , `${ uniquePrefix } __deleteAll` ) . sort ( )
254- await putKeys ( state , keys90 , 60 )
255- expect ( await state . deleteAll ( { match : `${ uniquePrefix } __deleteAll_a*` } ) ) . toEqual ( { keys : 4 } )
256- expect ( await state . deleteAll ( { match : `${ uniquePrefix } __deleteAll_*` } ) ) . toEqual ( { keys : 86 } )
257-
258- // > 1000 keys
259- const keys1100 = genKeyStrings ( 1100 , `${ uniquePrefix } __deleteAll` ) . sort ( )
260- await putKeys ( state , keys1100 , 60 )
261- expect ( await state . deleteAll ( { match : `${ uniquePrefix } __deleteAll_*_1` } ) ) . toEqual ( { keys : 1 } )
262- expect ( await state . deleteAll ( { match : `${ uniquePrefix } __deleteAll_*_1*0` } ) ) . toEqual ( { keys : 21 } ) // 10, 100 - 190, 1000-1090
263- expect ( await state . deleteAll ( { match : `${ uniquePrefix } __deleteAll_*` } ) ) . toEqual ( { keys : 1078 } )
264- } )
265-
266230 test ( 'throw error when get/put with invalid keys' , async ( ) => {
267231 const invalidKey = 'some/invalid:key'
268232 const state = await initStateEnv ( )
0 commit comments