Skip to content

Commit

Permalink
test: quick connection string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 25, 2024
1 parent 5dfb62f commit ac9ea01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ describe('connections:', function() {
it('should not throw an error when attempting to mutate unmutable options object gh-13335', async function() {
const m = new mongoose.Mongoose();
const opts = Object.preventExtensions({});
const conn = await m.connect('mongodb://localhost:27017/db?retryWrites=true&w=majority&readPreference=secondaryPreferred', opts);
const conn = await m.connect('mongodb://127.0.0.1:27017/db?retryWrites=true&w=majority&readPreference=secondaryPreferred', opts);
assert.ok(conn);
});
});
Expand Down

0 comments on commit ac9ea01

Please sign in to comment.