Skip to content

Commit e502604

Browse files
committed
test: move test runer to the tools directory
1 parent 66ee376 commit e502604

14 files changed

+14
-14
lines changed

test/mocha.opts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--recursive
22
--timeout 60000
3-
--file test/runner
4-
--ui test/runner/metadata_ui.js
3+
--file test/tools/runner
4+
--ui test/tools/runner/metadata_ui.js
55

test/runner/config.js renamed to test/tools/runner/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ const url = require('url');
33
const qs = require('querystring');
44
const util = require('util');
55

6-
const MongoClient = require('../../lib/mongo_client');
7-
const TopologyType = require('../../lib/core/sdam/common').TopologyType;
8-
const core = require('../../lib/core');
6+
const MongoClient = require('../../../lib/mongo_client');
7+
const TopologyType = require('../../../lib/core/sdam/common').TopologyType;
8+
const core = require('../../../lib/core');
99

1010
class NativeConfiguration {
1111
constructor(parsedURI, context) {
@@ -21,7 +21,7 @@ class NativeConfiguration {
2121
parsedURI.options
2222
);
2323

24-
this.mongo = this.require = require('../..');
24+
this.mongo = this.require = require('../../..');
2525
this.writeConcern = function() {
2626
return { w: 1 };
2727
};

test/runner/filters/client_encryption_filter.js renamed to test/tools/runner/filters/client_encryption_filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const mongodb = require('../../../index');
3+
const mongodb = require('../../../../index');
44
/**
55
* Filter for whether or not a test needs / doesn't need Client Side Encryption
66
*

test/runner/filters/mongodb_topology_filter.js renamed to test/tools/runner/filters/mongodb_topology_filter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const topologyType = require('../../../lib/core/topologies/shared').topologyType;
4-
const TopologyType = require('../../../lib/core/sdam/common').TopologyType;
3+
const topologyType = require('../../../../lib/core/topologies/shared').topologyType;
4+
const TopologyType = require('../../../../lib/core/sdam/common').TopologyType;
55

66
/**
77
* Filter for the MongoDB toopology required for the test

test/runner/index.js renamed to test/tools/runner/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
const path = require('path');
44
const fs = require('fs');
5-
const MongoClient = require('../..').MongoClient;
5+
const MongoClient = require('../../..').MongoClient;
66
const TestConfiguration = require('./config');
7-
const parseConnectionString = require('../../lib/core/uri_parser');
8-
const eachAsync = require('../../lib/core/utils').eachAsync;
7+
const parseConnectionString = require('../../../lib/core/uri_parser');
8+
const eachAsync = require('../../../lib/core/utils').eachAsync;
99
const mock = require('mongodb-mock-server');
1010
const chalk = require('chalk');
1111

0 commit comments

Comments
 (0)