Skip to content

Commit

Permalink
Merge branch '6.x' into vkarpov15/gh-14372
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 25, 2024
2 parents 45f5c4c + ac9ea01 commit d937726
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 d937726

Please sign in to comment.