Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(server_tests): change 'this' to 'self' in some server tests
Browse files Browse the repository at this point in the history
NODE-1096
  • Loading branch information
malexandert authored and mbroadst committed Aug 18, 2017
1 parent e6f4c9b commit 992d9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tests/functional/server_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,11 +846,11 @@ describe('Server tests', function() {
Connection.enableConnectionAccounting();

this.configuration.manager.restart(true).then(function() {
locateAuthMethod(this.configuration, function(err, method) {
locateAuthMethod(self.configuration, function(err, method) {
expect(err).to.be.null;

// Attempt to connect
executeCommand(this.configuration, 'admin', {
executeCommand(self.configuration, 'admin', {
createUser: 'root',
pwd: 'root',
roles: [ { role: 'root', db: 'admin' } ],
Expand Down

0 comments on commit 992d9e9

Please sign in to comment.