diff options
-rw-r--r-- | jstests/sharding/resharding_disallow_writes.js | 5 |
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"); |