Skip to content

Commit cf5b97c

Browse files
committed
chore: move server selection unit tests to clearer location
1 parent 7a41279 commit cf5b97c

File tree

171 files changed

+16
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+16
-12
lines changed

test/core/functional/max_staleness_tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const expect = require('chai').expect,
99
MongoError = require('../../../lib/core/error').MongoError,
1010
ReadPreference = require('../../../lib/core/topologies/read_preference');
1111

12-
const rsWithPrimaryPath = f('%s/../spec/max-staleness/ReplicaSetWithPrimary', __dirname);
13-
const rsWithoutPrimaryPath = f('%s/../spec/max-staleness/ReplicaSetNoPrimary', __dirname);
12+
const rsWithPrimaryPath = f('%s/../../spec/max-staleness/ReplicaSetWithPrimary', __dirname);
13+
const rsWithoutPrimaryPath = f('%s/../../spec/max-staleness/ReplicaSetNoPrimary', __dirname);
1414

1515
describe('Max Staleness', function() {
1616
describe('ReplicaSet without primary', function() {

test/core/functional/mongos_server_selection_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ReadPreference = require('../../../lib/core/topologies/read_preference');
88
const Server = require('../../../lib/core/topologies/server');
99

1010
describe('Mongos server selection tests', function() {
11-
var specPath = `${__dirname}/../spec/server-selection/server_selection/Sharded/read`;
11+
var specPath = `${__dirname}/../../spec/server-selection/server_selection/Sharded/read`;
1212
var entries = fs.readdirSync(specPath).filter(function(x) {
1313
return x.indexOf('.json') !== -1;
1414
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)