@@ -760,7 +760,7 @@ describe('Bulk', function() {
760
760
batch . insert ( { b : 1 } ) ;
761
761
762
762
// Execute the operations
763
- batch . execute ( self . configuration . writeConcernMax ( ) , function ( err , result ) {
763
+ batch . execute ( self . configuration . writeConcernMax ( ) . writeConcern , function ( err , result ) {
764
764
expect ( err ) . to . exist ;
765
765
expect ( result ) . to . not . exist ;
766
766
@@ -812,7 +812,7 @@ describe('Bulk', function() {
812
812
batch . insert ( { a : 1 } ) ;
813
813
814
814
// Execute the operations
815
- batch . execute ( configuration . writeConcernMax ( ) , ( err , result ) => {
815
+ batch . execute ( configuration . writeConcernMax ( ) . writeConcern , ( err , result ) => {
816
816
expect ( err ) . to . exist ;
817
817
expect ( result ) . to . not . exist ;
818
818
@@ -872,7 +872,7 @@ describe('Bulk', function() {
872
872
batch . insert ( { b : 1 } ) ;
873
873
874
874
// Execute the operations
875
- batch . execute ( self . configuration . writeConcernMax ( ) , function ( err , result ) {
875
+ batch . execute ( self . configuration . writeConcernMax ( ) . writeConcern , function ( err , result ) {
876
876
expect ( err ) . to . exist ;
877
877
expect ( result ) . to . not . exist ;
878
878
@@ -928,7 +928,7 @@ describe('Bulk', function() {
928
928
. updateOne ( { $set : { b : 2 } } ) ;
929
929
930
930
// Execute the operations
931
- batch . execute ( self . configuration . writeConcernMax ( ) , function ( err , result ) {
931
+ batch . execute ( self . configuration . writeConcernMax ( ) . writeConcern , function ( err , result ) {
932
932
// Check state of result
933
933
test . equal ( 1 , result . nUpserted ) ;
934
934
test . equal ( 0 , result . nInserted ) ;
0 commit comments