@@ -35,7 +35,7 @@ describe('Causal Consistency', function() {
35
35
36
36
return db
37
37
. collection ( 'causal_test' )
38
- . findOne ( { } , null , { session : session } )
38
+ . findOne ( { } , { session : session } )
39
39
. then ( ( ) => {
40
40
expect ( test . commands . started ) . to . have . length ( 1 ) ;
41
41
expect ( test . commands . succeeded ) . to . have . length ( 1 ) ;
@@ -56,7 +56,7 @@ describe('Causal Consistency', function() {
56
56
57
57
return db
58
58
. collection ( 'causal_test' )
59
- . findOne ( { } , null , { session : session } )
59
+ . findOne ( { } , { session : session } )
60
60
. then ( ( ) => {
61
61
expect ( test . commands . started ) . to . have . length ( 1 ) ;
62
62
expect ( test . commands . succeeded ) . to . have . length ( 1 ) ;
@@ -79,13 +79,13 @@ describe('Causal Consistency', function() {
79
79
let firstOperationTime ;
80
80
return db
81
81
. collection ( 'causal_test' )
82
- . findOne ( { } , null , { session : session } )
82
+ . findOne ( { } , { session : session } )
83
83
. then ( ( ) => {
84
84
const firstFindCommand = test . commands . started [ 0 ] . command ;
85
85
expect ( firstFindCommand ) . to . not . have . key ( 'readConcern' ) ;
86
86
firstOperationTime = test . commands . succeeded [ 0 ] . reply . operationTime ;
87
87
88
- return db . collection ( 'causal_test' ) . findOne ( { } , null , { session : session } ) ;
88
+ return db . collection ( 'causal_test' ) . findOne ( { } , { session : session } ) ;
89
89
} )
90
90
. then ( ( ) => {
91
91
const secondFindCommand = test . commands . started [ 1 ] . command ;
@@ -107,8 +107,8 @@ describe('Causal Consistency', function() {
107
107
const coll = db . collection ( 'causal_test' , { readConcern : { level : 'majority' } } ) ;
108
108
109
109
return coll
110
- . findOne ( { } , null , { session : session } )
111
- . then ( ( ) => coll . findOne ( { } , null , { session : session } ) )
110
+ . findOne ( { } , { session : session } )
111
+ . then ( ( ) => coll . findOne ( { } , { session : session } ) )
112
112
. then ( ( ) => {
113
113
const command = test . commands . started [ 1 ] . command ;
114
114
expect ( command ) . to . have . any . key ( 'readConcern' ) ;
@@ -133,7 +133,7 @@ describe('Causal Consistency', function() {
133
133
. insert ( { } , { session : session } )
134
134
. then ( ( ) => {
135
135
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 } ) ;
137
137
} )
138
138
. then ( ( ) => {
139
139
const secondFindCommand = test . commands . started [ 1 ] . command ;
0 commit comments