Skip to content

Commit 79814f7

Browse files
committed
test: don't use the topology manager needlessly for rc tests
1 parent bf87924 commit 79814f7

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

test/functional/readconcern_tests.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,9 @@ var f = require('util').format;
55
const expect = require('chai').expect;
66

77
describe('ReadConcern', function() {
8-
before(function(done) {
8+
before(function() {
99
var configuration = this.configuration;
10-
setupDatabase(configuration).then(function() {
11-
configuration.restart({ purge: false, kill: true }, function() {
12-
done();
13-
});
14-
});
15-
});
16-
17-
after(function(done) {
18-
var configuration = this.configuration;
19-
configuration.restart({ purge: false, kill: true }, function() {
20-
done();
21-
});
10+
return setupDatabase(configuration);
2211
});
2312

2413
it('Should set local readConcern on db level', {

0 commit comments

Comments
 (0)