@@ -35,7 +35,7 @@ describe('Causal Consistency', function() {
3535
3636 return db
3737 . collection ( 'causal_test' )
38- . findOne ( { } , null , { session : session } )
38+ . findOne ( { } , { session : session } )
3939 . then ( ( ) => {
4040 expect ( test . commands . started ) . to . have . length ( 1 ) ;
4141 expect ( test . commands . succeeded ) . to . have . length ( 1 ) ;
@@ -56,7 +56,7 @@ describe('Causal Consistency', function() {
5656
5757 return db
5858 . collection ( 'causal_test' )
59- . findOne ( { } , null , { session : session } )
59+ . findOne ( { } , { session : session } )
6060 . then ( ( ) => {
6161 expect ( test . commands . started ) . to . have . length ( 1 ) ;
6262 expect ( test . commands . succeeded ) . to . have . length ( 1 ) ;
@@ -79,13 +79,13 @@ describe('Causal Consistency', function() {
7979 let firstOperationTime ;
8080 return db
8181 . collection ( 'causal_test' )
82- . findOne ( { } , null , { session : session } )
82+ . findOne ( { } , { session : session } )
8383 . then ( ( ) => {
8484 const firstFindCommand = test . commands . started [ 0 ] . command ;
8585 expect ( firstFindCommand ) . to . not . have . key ( 'readConcern' ) ;
8686 firstOperationTime = test . commands . succeeded [ 0 ] . reply . operationTime ;
8787
88- return db . collection ( 'causal_test' ) . findOne ( { } , null , { session : session } ) ;
88+ return db . collection ( 'causal_test' ) . findOne ( { } , { session : session } ) ;
8989 } )
9090 . then ( ( ) => {
9191 const secondFindCommand = test . commands . started [ 1 ] . command ;
@@ -107,8 +107,8 @@ describe('Causal Consistency', function() {
107107 const coll = db . collection ( 'causal_test' , { readConcern : { level : 'majority' } } ) ;
108108
109109 return coll
110- . findOne ( { } , null , { session : session } )
111- . then ( ( ) => coll . findOne ( { } , null , { session : session } ) )
110+ . findOne ( { } , { session : session } )
111+ . then ( ( ) => coll . findOne ( { } , { session : session } ) )
112112 . then ( ( ) => {
113113 const command = test . commands . started [ 1 ] . command ;
114114 expect ( command ) . to . have . any . key ( 'readConcern' ) ;
@@ -133,7 +133,7 @@ describe('Causal Consistency', function() {
133133 . insert ( { } , { session : session } )
134134 . then ( ( ) => {
135135 firstOperationTime = test . commands . succeeded [ 0 ] . reply . operationTime ;
136- return db . collection ( 'causal_test' ) . findOne ( { } , null , { session : session } ) ;
136+ return db . collection ( 'causal_test' ) . findOne ( { } , { session : session } ) ;
137137 } )
138138 . then ( ( ) => {
139139 const secondFindCommand = test . commands . started [ 1 ] . command ;
0 commit comments