Skip to content

Commit 40f5872

Browse files
committed
test(max-staleness): a tags parameter is required
1 parent d8b556e commit 40f5872

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/max_staleness_tests.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('Max Staleness', function() {
9696

9797
// Get a db with a new readPreference
9898
var db1 = client.db('test', {
99-
readPreference: new ReadPreference('secondary', { maxStalenessSeconds: 250 })
99+
readPreference: new ReadPreference('secondary', null, { maxStalenessSeconds: 250 })
100100
});
101101

102102
db1
@@ -138,7 +138,7 @@ describe('Max Staleness', function() {
138138
// Get a db with a new readPreference
139139
db
140140
.collection('test', {
141-
readPreference: new ReadPreference('secondary', { maxStalenessSeconds: 250 })
141+
readPreference: new ReadPreference('secondary', null, { maxStalenessSeconds: 250 })
142142
})
143143
.find({})
144144
.toArray(function(err) {
@@ -172,7 +172,7 @@ describe('Max Staleness', function() {
172172
MongoClient.connect(`mongodb://${test.server.uri()}/test`, function(err, client) {
173173
expect(err).to.not.exist;
174174
var db = client.db(self.configuration.db);
175-
var readPreference = new ReadPreference('secondary', { maxStalenessSeconds: 250 });
175+
var readPreference = new ReadPreference('secondary', null, { maxStalenessSeconds: 250 });
176176

177177
// Get a db with a new readPreference
178178
db

0 commit comments

Comments
 (0)