Skip to content

Commit 11f8792

Browse files
committed
test: improve testing of default write concern
NODE-2291
1 parent 62b39a0 commit 11f8792

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/functional/write_concern.test.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'use strict';
2+
3+
const TestRunnerContext = require('./spec-runner').TestRunnerContext;
4+
const generateTopologyTests = require('./spec-runner').generateTopologyTests;
5+
const loadSpecTests = require('../spec').loadSpecTests;
6+
7+
describe('Write Concern', function() {
8+
describe('spec tests', function() {
9+
const testContext = new TestRunnerContext();
10+
const testSuites = loadSpecTests('read-write-concern/operation');
11+
12+
after(() => testContext.teardown());
13+
before(function() {
14+
return testContext.setup(this.configuration);
15+
});
16+
17+
generateTopologyTests(testSuites, testContext);
18+
});
19+
});

0 commit comments

Comments
 (0)