diff options
author | Jordi Serra Torrens <jordi.serra-torrens@mongodb.com> | 2021-07-27 10:46:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-21 10:09:11 +0000 |
commit | 6c65b3d421b9e9b0494f9c9c4e42e6002181a37b (patch) | |
tree | c4f84d73d5d8e83132010558ed341211e7b76c24 | |
parent | f8558ce2e556405fed0a22528fe67de6dfcd09dd (diff) | |
download | mongo-6c65b3d421b9e9b0494f9c9c4e42e6002181a37b.tar.gz |
SERVER-58871 Set fixed db primary in write_concern_basic.js
(cherry picked from commit 9b87aa49a79d4018f8de9ec2c95fd2742f3b8303)
-rw-r--r-- | jstests/sharding/write_concern_basic.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/sharding/write_concern_basic.js b/jstests/sharding/write_concern_basic.js index 164c92b00ce..4fcabebae30 100644 --- a/jstests/sharding/write_concern_basic.js +++ b/jstests/sharding/write_concern_basic.js @@ -23,10 +23,11 @@ let st = new ShardingTest({shards: 2}); { let db = st.s.getDB("test"); // _shardsvrDropDatabaseParticipant required for PM-1965 - failCommandsWithWriteConcernError(st.rs0, ["dropDatabase", "_shardsvrDropDatabaseParticipant"]); + failCommandsWithWriteConcernError(st.rs1, ["dropDatabase", "_shardsvrDropDatabaseParticipant"]); assert.commandWorked(db.collection.insert({"a": 1})); + st.ensurePrimaryShard("test", st.shard0.shardName); assert.commandFailedWithCode(db.runCommand({"dropDatabase": 1}), 12345); - turnOffFailCommand(st.rs0); + turnOffFailCommand(st.rs1); } st.stop(); |