@@ -982,17 +982,6 @@ describe.each([
982982 expect ( response . hits [ 0 ] ) . not . toHaveProperty ( '_vectors' ) ;
983983 } ) ;
984984
985- test ( `${ permission } key: Try to search on deleted index and fail` , async ( ) => {
986- const client = await getClient ( permission ) ;
987- const masterClient = await getClient ( 'Master' ) ;
988- const { taskUid } = await masterClient . index ( index . uid ) . delete ( ) ;
989- await masterClient . waitForTask ( taskUid ) ;
990-
991- await expect (
992- client . index ( index . uid ) . search ( 'prince' , { } ) ,
993- ) . rejects . toHaveProperty ( 'cause.code' , ErrorStatusCode . INDEX_NOT_FOUND ) ;
994- } ) ;
995-
996985 test ( `${ permission } key: Search with locales` , async ( ) => {
997986 const client = await getClient ( permission ) ;
998987 const masterClient = await getClient ( 'Master' ) ;
@@ -1010,6 +999,17 @@ describe.each([
1010999
10111000 expect ( searchResponse . hits . length ) . toEqual ( 2 ) ;
10121001 } ) ;
1002+
1003+ test ( `${ permission } key: Try to search on deleted index and fail` , async ( ) => {
1004+ const client = await getClient ( permission ) ;
1005+ const masterClient = await getClient ( 'Master' ) ;
1006+ const { taskUid } = await masterClient . index ( index . uid ) . delete ( ) ;
1007+ await masterClient . waitForTask ( taskUid ) ;
1008+
1009+ await expect (
1010+ client . index ( index . uid ) . search ( 'prince' , { } ) ,
1011+ ) . rejects . toHaveProperty ( 'cause.code' , ErrorStatusCode . INDEX_NOT_FOUND ) ;
1012+ } ) ;
10131013} ) ;
10141014
10151015describe . each ( [ { permission : 'No' } ] ) (
0 commit comments