@@ -799,12 +799,8 @@ describe('crud - insert', function () {
799799 const db = client . db ( configuration . db ) ;
800800 const collection = db . collection ( 'shouldCorrectlyPerformLargeTextInsert' ) ;
801801
802- // Create large string, insert and then retrive
803- let string = '' ;
804- // Create large text field
805- for ( let i = 0 ; i < 50000 ; i ++ ) {
806- string = string + 'a' ;
807- }
802+ // Create large string, insert and then retrieve
803+ const string = 'a' . repeat ( 50000 ) ;
808804
809805 await collection . insertOne ( { a : 1 , string : string } , configuration . writeConcernMax ( ) ) ;
810806
@@ -866,25 +862,26 @@ describe('crud - insert', function () {
866862 // }
867863 // });
868864
869- it ( 'should correctly use custom object to update document' , async function ( ) {
870- const configuration = this . configuration ;
871- const db = client . db ( configuration . db ) ;
872- const collection = db . collection ( 'shouldCorrectlyUseCustomObjectToUpdateDocument' ) ;
873-
874- await collection . insertOne ( { a : { b : { c : 1 } } } , configuration . writeConcernMax ( ) ) ;
875-
876- const query = {
877- a : { b : { c : 1 } }
878- } ;
879-
880- // Update document
881- const r = await collection . updateOne (
882- query ,
883- { $set : { 'a.b.d' : 1 } } ,
884- configuration . writeConcernMax ( )
885- ) ;
886- expect ( r ) . property ( 'matchedCount' ) . to . equal ( 1 ) ;
887- } ) ;
865+ // TODO(NODE-7219): remove as it's irrelevant for insert functionality
866+ // it('should correctly use custom object to update document', async function () {
867+ // const configuration = this.configuration;
868+ // const db = client.db(configuration.db);
869+ // const collection = db.collection('shouldCorrectlyUseCustomObjectToUpdateDocument');
870+ //
871+ // await collection.insertOne({ a: { b: { c: 1 } } }, configuration.writeConcernMax());
872+ //
873+ // const query = {
874+ // a: { b: { c: 1 } }
875+ // };
876+ //
877+ // // Update document
878+ // const r = await collection.updateOne(
879+ // query,
880+ // { $set: { 'a.b.d': 1 } },
881+ // configuration.writeConcernMax()
882+ // );
883+ // expect(r).property('matchedCount').to.equal(1);
884+ // });
888885
889886 // TODO(NODE-7219): remove as it's outdated (no callbacks)
890887 // it('shouldExecuteInsertWithNoCallbackAndWriteConcern', {
0 commit comments