@@ -64,7 +64,7 @@ describe('GetMoreOperation', function () {
64
64
maxTimeMS : 500
65
65
} ;
66
66
67
- await promisify ( operation . execute . bind ( operation ) ) ( server , undefined ) ;
67
+ await promisify ( operation . executeCallback . bind ( operation ) ) ( server , undefined ) ;
68
68
expect ( stub . calledOnce ) . to . be . true ;
69
69
const call = stub . getCall ( 0 ) ;
70
70
expect ( call . args [ 0 ] ) . to . equal ( namespace ) ;
@@ -93,7 +93,7 @@ describe('GetMoreOperation', function () {
93
93
expect ( error . message ) . to . equal ( 'Getmore must run on the same server operation began on' ) ;
94
94
done ( ) ;
95
95
} ;
96
- operation . execute ( server2 , session , callback ) ;
96
+ operation . executeCallback ( server2 , session , callback ) ;
97
97
} ) ;
98
98
} ) ;
99
99
@@ -109,7 +109,7 @@ describe('GetMoreOperation', function () {
109
109
it ( 'should build basic getMore command with cursorId and collection' , async ( ) => {
110
110
const getMoreOperation = new GetMoreOperation ( namespace , cursorId , server , { } ) ;
111
111
const stub = sinon . stub ( server , 'command' ) . yieldsRight ( ) ;
112
- await promisify ( getMoreOperation . execute . bind ( getMoreOperation ) ) ( server , undefined ) ;
112
+ await promisify ( getMoreOperation . executeCallback . bind ( getMoreOperation ) ) ( server , undefined ) ;
113
113
expect ( stub ) . to . have . been . calledOnceWith ( namespace , {
114
114
getMore : cursorId ,
115
115
collection : namespace . collection
@@ -122,7 +122,7 @@ describe('GetMoreOperation', function () {
122
122
} ;
123
123
const getMoreOperation = new GetMoreOperation ( namespace , cursorId , server , options ) ;
124
124
const stub = sinon . stub ( server , 'command' ) . yieldsRight ( ) ;
125
- await promisify ( getMoreOperation . execute . bind ( getMoreOperation ) ) ( server , undefined ) ;
125
+ await promisify ( getMoreOperation . executeCallback . bind ( getMoreOperation ) ) ( server , undefined ) ;
126
126
expect ( stub ) . to . have . been . calledOnceWith (
127
127
namespace ,
128
128
sinon . match . has ( 'batchSize' , options . batchSize )
@@ -135,7 +135,7 @@ describe('GetMoreOperation', function () {
135
135
} ;
136
136
const getMoreOperation = new GetMoreOperation ( namespace , cursorId , server , options ) ;
137
137
const stub = sinon . stub ( server , 'command' ) . yieldsRight ( ) ;
138
- await promisify ( getMoreOperation . execute . bind ( getMoreOperation ) ) ( server , undefined ) ;
138
+ await promisify ( getMoreOperation . executeCallback . bind ( getMoreOperation ) ) ( server , undefined ) ;
139
139
expect ( stub ) . to . have . been . calledOnceWith (
140
140
namespace ,
141
141
sinon . match . has ( 'maxTimeMS' , options . maxAwaitTimeMS )
@@ -193,7 +193,7 @@ describe('GetMoreOperation', function () {
193
193
} ;
194
194
const operation = new GetMoreOperation ( namespace , cursorId , server , optionsWithComment ) ;
195
195
const stub = sinon . stub ( server , 'command' ) . yieldsRight ( ) ;
196
- await promisify ( operation . execute . bind ( operation ) ) ( server , undefined ) ;
196
+ await promisify ( operation . executeCallback . bind ( operation ) ) ( server , undefined ) ;
197
197
expect ( stub ) . to . have . been . calledOnceWith ( namespace , getMore ) ;
198
198
} ) ;
199
199
}
@@ -216,7 +216,7 @@ describe('GetMoreOperation', function () {
216
216
server ,
217
217
options
218
218
) ;
219
- const error = await promisify ( getMoreOperation . execute . bind ( getMoreOperation ) ) (
219
+ const error = await promisify ( getMoreOperation . executeCallback . bind ( getMoreOperation ) ) (
220
220
server ,
221
221
undefined
222
222
) . catch ( error => error ) ;
@@ -230,7 +230,7 @@ describe('GetMoreOperation', function () {
230
230
server ,
231
231
options
232
232
) ;
233
- const error = await promisify ( getMoreOperation . execute . bind ( getMoreOperation ) ) (
233
+ const error = await promisify ( getMoreOperation . executeCallback . bind ( getMoreOperation ) ) (
234
234
server ,
235
235
undefined
236
236
) . catch ( error => error ) ;
@@ -244,7 +244,7 @@ describe('GetMoreOperation', function () {
244
244
server ,
245
245
options
246
246
) ;
247
- const error = await promisify ( getMoreOperation . execute . bind ( getMoreOperation ) ) (
247
+ const error = await promisify ( getMoreOperation . executeCallback . bind ( getMoreOperation ) ) (
248
248
server ,
249
249
undefined
250
250
) . catch ( error => error ) ;
0 commit comments