File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
test/integration/client-side-operations-timeout Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ describe('CSOT driver tests', () => {
109
109
110
110
beforeEach ( async function ( ) {
111
111
configClient = this . configuration . newClient ( ) ;
112
- await configClient
112
+ const result = await configClient
113
113
. db ( )
114
114
. admin ( )
115
115
. command ( {
@@ -121,10 +121,11 @@ describe('CSOT driver tests', () => {
121
121
blockTimeMS : 10
122
122
}
123
123
} ) ;
124
+ expect ( result ) . to . have . property ( 'ok' , 1 ) ;
124
125
} ) ;
125
126
126
127
afterEach ( async function ( ) {
127
- await configClient
128
+ const result = await configClient
128
129
. db ( )
129
130
. admin ( )
130
131
. command ( {
@@ -136,6 +137,7 @@ describe('CSOT driver tests', () => {
136
137
blockTimeMS : 10
137
138
}
138
139
} ) ;
140
+ expect ( result ) . to . have . property ( 'ok' , 1 ) ;
139
141
await configClient . close ( ) ;
140
142
} ) ;
141
143
@@ -156,10 +158,10 @@ describe('CSOT driver tests', () => {
156
158
e => e
157
159
) ;
158
160
159
- expect ( commandsStarted ) . to . have . length ( 0 ) ; // Ensure that we fail before we start the insertOne
160
-
161
161
expect ( maybeError ) . to . exist ;
162
162
expect ( maybeError ) . to . be . instanceof ( MongoOperationTimeoutError ) ;
163
+
164
+ expect ( commandsStarted ) . to . have . length ( 0 ) ; // Ensure that we fail before we start the insertOne
163
165
}
164
166
} ) ;
165
167
} ) ;
You can’t perform that action at this time.
0 commit comments