Skip to content

Commit 3496b4b

Browse files
committed
fix: delete automerge settings before checking for omission
1 parent 4b531d9 commit 3496b4b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/shell-api/src/shard.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,13 @@ describe('Shard', function () {
25322532
it('not shown if sh.status() if not explicitly enabled', async function () {
25332533
// It might be explicitly set from 7.0
25342534
skipIfServerVersion(mongos, '>= 7.0');
2535+
2536+
// Ensure no previous automerge settings are present
2537+
await instanceState.currentDb
2538+
.getSiblingDB('config')
2539+
.getCollection('settings')
2540+
.deleteOne({ _id: 'automerge' });
2541+
25352542
expect((await sh.status()).value.automerge).is.undefined;
25362543
});
25372544
describe('from 7.0', function () {

0 commit comments

Comments
 (0)