diff --git a/jstests/replsets/ddl_ops_after_prepare_lock_failpoint.js b/jstests/replsets/ddl_ops_after_prepare_lock_failpoint.js
|
index 22d40dad5d..95eea3f183 100644
|
--- a/jstests/replsets/ddl_ops_after_prepare_lock_failpoint.js
|
+++ b/jstests/replsets/ddl_ops_after_prepare_lock_failpoint.js
|
@@ -74,6 +74,12 @@
|
assert(testDB.getCollectionNames().includes(collToRenameFrom));
|
assert(!testDB.getCollectionNames().includes(collToRenameTo));
|
|
+ assert.commandFailedWithCode(testDB.adminCommand({
|
+ renameCollection: testDB.getCollection(collToRenameFrom).getFullName(),
|
+ to: testDB.getSiblingDB('test2').getCollection(collToRenameTo).getFullName(),
|
+ }),
|
+ ErrorCodes.LockTimeout);
|
+
|
// Attempt to add a new index to that collection.
|
assert.commandFailedWithCode(
|
testDB.runCommand(
|