File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
test/integration/change-streams Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ describe('Change Streams', function () {
170
170
}
171
171
} ) ;
172
172
173
- it ( 'contains a wallType date property on the change' , {
173
+ it ( 'contains a wallTtime date property on the change' , {
174
174
metadata : { requires : { topology : 'replicaset' , mongodb : '>=6.0.0' } } ,
175
175
async test ( ) {
176
176
const collection = db . collection ( 'wallTimeTest' ) ;
@@ -186,7 +186,10 @@ describe('Change Streams', function () {
186
186
await changeStream . close ( ) ;
187
187
188
188
expect ( change ) . to . have . property ( 'wallTime' ) ;
189
- expect ( change . wallType ) . to . be . instanceOf ( Date ) ;
189
+ // For cases where it's not undefined we check it's a Date.
190
+ if ( change . wallTime ) {
191
+ expect ( change . wallType ) . to . be . instanceOf ( Date ) ;
192
+ }
190
193
}
191
194
} ) ;
192
195
You can’t perform that action at this time.
0 commit comments