@@ -22,7 +22,7 @@ describe('ReadConcern', function() {
22
22
} ) ;
23
23
24
24
it ( 'Should set local readConcern on db level' , {
25
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 2.4.X ' } } ,
25
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2 ' } } ,
26
26
27
27
test : function ( done ) {
28
28
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -68,7 +68,7 @@ describe('ReadConcern', function() {
68
68
} ) ;
69
69
70
70
it ( 'Should set majority readConcern on db level' , {
71
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.1.7 ' } } ,
71
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2 ' } } ,
72
72
73
73
test : function ( done ) {
74
74
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -114,7 +114,7 @@ describe('ReadConcern', function() {
114
114
} ) ;
115
115
116
116
it ( 'Should set local readConcern at collection level' , {
117
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 2.4.X ' } } ,
117
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2 ' } } ,
118
118
119
119
test : function ( done ) {
120
120
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -157,7 +157,7 @@ describe('ReadConcern', function() {
157
157
} ) ;
158
158
159
159
it ( 'Should set majority readConcern at collection level' , {
160
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.1.7 ' } } ,
160
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2 ' } } ,
161
161
162
162
test : function ( done ) {
163
163
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -203,7 +203,7 @@ describe('ReadConcern', function() {
203
203
} ) ;
204
204
205
205
it ( 'Should set local readConcern using MongoClient' , {
206
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 2.4.X ' } } ,
206
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2 ' } } ,
207
207
208
208
test : function ( done ) {
209
209
var configuration = this . configuration ;
@@ -251,7 +251,7 @@ describe('ReadConcern', function() {
251
251
} ) ;
252
252
253
253
it ( 'Should set majority readConcern using MongoClient' , {
254
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.1.7 ' } } ,
254
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2 ' } } ,
255
255
256
256
test : function ( done ) {
257
257
var configuration = this . configuration ;
@@ -299,7 +299,7 @@ describe('ReadConcern', function() {
299
299
} ) ;
300
300
301
301
it ( 'Should set majority readConcern using MongoClient with options' , {
302
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.1.7 ' } } ,
302
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2 ' } } ,
303
303
304
304
test : function ( done ) {
305
305
var configuration = this . configuration ;
@@ -382,7 +382,8 @@ describe('ReadConcern', function() {
382
382
383
383
// Execute find
384
384
collection . find ( ) . toArray ( function ( err ) {
385
- test . equal ( null , err ) ;
385
+ expect ( err ) . to . exist ;
386
+
386
387
listener . uninstrument ( ) ;
387
388
client . close ( ) ;
388
389
done ( ) ;
@@ -392,7 +393,7 @@ describe('ReadConcern', function() {
392
393
} ) ;
393
394
394
395
it ( 'Should set majority readConcern aggregate command' , {
395
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2.0 ' } } ,
396
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2' } } ,
396
397
397
398
test : function ( done ) {
398
399
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -445,7 +446,7 @@ describe('ReadConcern', function() {
445
446
} ) ;
446
447
447
448
it ( 'Should set majority readConcern aggregate command but ignore due to out' , {
448
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2.0 ' } } ,
449
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2' } } ,
449
450
450
451
test : function ( done ) {
451
452
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -511,7 +512,7 @@ describe('ReadConcern', function() {
511
512
} ) ;
512
513
513
514
it ( 'Should set majority readConcern mapReduce command but be ignored' , {
514
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2.0 ' } } ,
515
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2' } } ,
515
516
516
517
test : function ( done ) {
517
518
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -575,7 +576,7 @@ describe('ReadConcern', function() {
575
576
} ) ;
576
577
577
578
it ( 'Should set majority readConcern distinct command' , {
578
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2.0 ' } } ,
579
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2' } } ,
579
580
580
581
test : function ( done ) {
581
582
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -642,7 +643,7 @@ describe('ReadConcern', function() {
642
643
} ) ;
643
644
644
645
it ( 'Should set majority readConcern count command' , {
645
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2.0 ' } } ,
646
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2' } } ,
646
647
647
648
test : function ( done ) {
648
649
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -709,7 +710,7 @@ describe('ReadConcern', function() {
709
710
} ) ;
710
711
711
712
it ( 'Should set majority readConcern group command' , {
712
- metadata : { requires : { topology : 'replicaset' , mongodb : '>=3.2.0 <=4.1.0' } } ,
713
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>=3.2 <=4.1.0' } } ,
713
714
714
715
test : function ( done ) {
715
716
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -782,7 +783,7 @@ describe('ReadConcern', function() {
782
783
} ) ;
783
784
784
785
it ( 'Should set majority readConcern parallelCollectionScan command' , {
785
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2.0 <=4.1.0' } } ,
786
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2 <=4.1.0' } } ,
786
787
787
788
test : function ( done ) {
788
789
var listener = require ( '../..' ) . instrument ( function ( err ) {
@@ -849,7 +850,7 @@ describe('ReadConcern', function() {
849
850
} ) ;
850
851
851
852
it ( 'Should set majority readConcern geoSearch command' , {
852
- metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2.0 ' } } ,
853
+ metadata : { requires : { topology : 'replicaset' , mongodb : '>= 3.2' } } ,
853
854
854
855
test : function ( done ) {
855
856
var listener = require ( '../..' ) . instrument ( function ( err ) {
0 commit comments