@@ -655,62 +655,6 @@ describe('CRUD API', function () {
655655 }
656656 } ) ;
657657
658- it ( 'should correctly execute remove methods using crud api' , {
659- // Add a tag that our runner can trigger on
660- // in this case we are setting that node needs to be higher than 0.10.X to run
661- metadata : {
662- requires : { topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] }
663- } ,
664-
665- test : function ( done ) {
666- client . connect ( function ( err , client ) {
667- const db = client . db ( ) ;
668-
669- //
670- // Update one method
671- // -------------------------------------------------
672- const deleteOne = function ( ) {
673- db . collection ( 't4_2' ) . insertMany (
674- [ { a : 1 } , { a : 1 } ] ,
675- { writeConcern : { w : 1 } } ,
676- ( err , r ) => {
677- expect ( err ) . to . not . exist ;
678- expect ( r ) . property ( 'insertedCount' ) . to . equal ( 2 ) ;
679-
680- db . collection ( 't4_2' ) . deleteOne ( { a : 1 } , ( err , r ) => {
681- expect ( err ) . to . not . exist ;
682- expect ( r ) . property ( 'deletedCount' ) . to . equal ( 1 ) ;
683-
684- deleteMany ( ) ;
685- } ) ;
686- }
687- ) ;
688- } ;
689-
690- //
691- // Update many method
692- // -------------------------------------------------
693- const deleteMany = function ( ) {
694- db . collection ( 't4_3' ) . insertMany (
695- [ { a : 1 } , { a : 1 } ] ,
696- { writeConcern : { w : 1 } } ,
697- ( err , r ) => {
698- expect ( err ) . to . not . exist ;
699- expect ( r ) . property ( 'insertedCount' ) . to . equal ( 2 ) ;
700-
701- db . collection ( 't4_3' ) . deleteMany ( { a : 1 } , ( err , r ) => {
702- expect ( err ) . to . not . exist ;
703- expect ( r ) . property ( 'deletedCount' ) . to . equal ( 2 ) ;
704-
705- client . close ( done ) ;
706- } ) ;
707- }
708- ) ;
709- } ;
710- } ) ;
711- }
712- } ) ;
713-
714658 it ( 'should correctly execute findAndModify methods using crud api' , {
715659 // Add a tag that our runner can trigger on
716660 // in this case we are setting that node needs to be higher than 0.10.X to run
0 commit comments