@@ -1259,7 +1259,8 @@ describe('Change Streams', function () {
1259
1259
// Running on replicaset because other topologies are finiky with the cluster-wide events
1260
1260
// Dropping and renaming and creating collections in order to achieve a clean slate isn't worth the goal of these tests
1261
1261
// We just want to show that the new ChangeStreamDocument type information can reproduced in a real env
1262
- topologies : [ 'replicaset' ]
1262
+ topologies : [ 'replicaset' ] ,
1263
+ minServerVersion : '6.0'
1263
1264
} )
1264
1265
. createEntities ( [
1265
1266
{ client : { id : 'client0' } } ,
@@ -1325,6 +1326,7 @@ describe('Change Streams', function () {
1325
1326
operationType : 'drop' ,
1326
1327
ns : { db : 'dbToDrop' , coll : 'collInDbToDrop' } ,
1327
1328
clusterTime : { $$type : 'timestamp' } ,
1329
+ wallTime : { $$type : 'date' } ,
1328
1330
txnNumber : { $$exists : false } ,
1329
1331
lsid : { $$exists : false }
1330
1332
}
@@ -1337,6 +1339,7 @@ describe('Change Streams', function () {
1337
1339
operationType : 'dropDatabase' ,
1338
1340
ns : { db : 'dbToDrop' , coll : { $$exists : false } } ,
1339
1341
clusterTime : { $$type : 'timestamp' } ,
1342
+ wallTime : { $$type : 'date' } ,
1340
1343
txnNumber : { $$exists : false } ,
1341
1344
lsid : { $$exists : false }
1342
1345
}
@@ -1349,6 +1352,7 @@ describe('Change Streams', function () {
1349
1352
operationType : 'drop' ,
1350
1353
ns : { db : 'dbToDrop' , coll : 'collInDbToDrop' } ,
1351
1354
clusterTime : { $$type : 'timestamp' } ,
1355
+ wallTime : { $$type : 'date' } ,
1352
1356
txnNumber : { $$exists : false } ,
1353
1357
lsid : { $$exists : false }
1354
1358
}
@@ -1360,6 +1364,7 @@ describe('Change Streams', function () {
1360
1364
_id : { $$exists : true } ,
1361
1365
operationType : 'invalidate' ,
1362
1366
clusterTime : { $$type : 'timestamp' } ,
1367
+ wallTime : { $$type : 'date' } ,
1363
1368
txnNumber : { $$exists : false } ,
1364
1369
lsid : { $$exists : false }
1365
1370
}
@@ -1420,6 +1425,7 @@ describe('Change Streams', function () {
1420
1425
documentKey : { _id : 3 } ,
1421
1426
ns : { db : 'changeStreamDocShape' , coll : 'collection0' } ,
1422
1427
clusterTime : { $$type : 'timestamp' } ,
1428
+ wallTime : { $$type : 'date' } ,
1423
1429
txnNumber : { $$type : [ 'long' , 'int' ] } ,
1424
1430
lsid : { $$sessionLsid : 'session0' }
1425
1431
}
@@ -1472,6 +1478,7 @@ describe('Change Streams', function () {
1472
1478
documentKey : { _id : 3 } ,
1473
1479
ns : { db : 'renameDb' , coll : 'collToRename' } ,
1474
1480
clusterTime : { $$type : 'timestamp' } ,
1481
+ wallTime : { $$type : 'date' } ,
1475
1482
txnNumber : { $$exists : false } ,
1476
1483
lsid : { $$exists : false }
1477
1484
}
@@ -1497,6 +1504,7 @@ describe('Change Streams', function () {
1497
1504
ns : { db : 'renameDb' , coll : 'collToRename' } ,
1498
1505
to : { db : 'renameDb' , coll : 'newCollectionName' } ,
1499
1506
clusterTime : { $$type : 'timestamp' } ,
1507
+ wallTime : { $$type : 'date' } ,
1500
1508
txnNumber : { $$exists : false } ,
1501
1509
lsid : { $$exists : false }
1502
1510
}
0 commit comments