summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Osta <luis.osta@mongodb.com>2021-06-10 13:12:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-10 13:40:28 +0000
commitea0bb439813fe02f5f962a1438d78d263d07243d (patch)
tree3594cb5a9a8a0eb782e13403b7fea13cfdba704b
parenta6f0f7260c18bb768cc4d3e0d1a7b5859346c99b (diff)
downloadmongo-ea0bb439813fe02f5f962a1438d78d263d07243d.tar.gz
SERVER-57507 Change maxTimeMS in collMod command in resharding_disallow_writes test
-rw-r--r--jstests/sharding/resharding_disallow_writes.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/sharding/resharding_disallow_writes.js b/jstests/sharding/resharding_disallow_writes.js
index 2e56af5a09a..f549a4fa828 100644
--- a/jstests/sharding/resharding_disallow_writes.js
+++ b/jstests/sharding/resharding_disallow_writes.js
@@ -73,13 +73,12 @@ reshardingTest.withReshardingInBackground(
jsTestLog("Attempting collMod");
assert.commandFailedWithCode(
- sourceCollection.runCommand({collMod: sourceCollection.getName(), maxTimeMS: 5000}),
+ sourceCollection.runCommand({collMod: sourceCollection.getName()}),
ErrorCodes.ReshardCollectionInProgress);
jsTestLog("Attempting drop index");
assert.commandFailedWithCode(
- sourceCollection.runCommand(
- {dropIndexes: collName, index: {oldKey: 1}, maxTimeMS: 5000}),
+ sourceCollection.runCommand({dropIndexes: collName, index: {oldKey: 1}}),
ErrorCodes.ReshardCollectionInProgress);
jsTestLog("Completed operations");