summaryrefslogtreecommitdiff
path: root/jstests/replsets/emptycapped.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/emptycapped.js')
-rw-r--r--jstests/replsets/emptycapped.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/emptycapped.js b/jstests/replsets/emptycapped.js
index e15322935eb..8e47dec5570 100644
--- a/jstests/replsets/emptycapped.js
+++ b/jstests/replsets/emptycapped.js
@@ -40,7 +40,7 @@ assert.eq(primaryTestDB.capped.find().itcount(),
// Truncate a capped collection on a secondary.
assert.commandFailedWithCode(secondaryTestDB.runCommand({emptycapped: 'capped'}),
- ErrorCodes.NotMaster);
+ ErrorCodes.NotWritablePrimary);
// Truncate the oplog.
assert.commandFailedWithCode(primaryLocalDB.runCommand({emptycapped: "oplog.rs"}),