summaryrefslogtreecommitdiff
path: root/jstests/auth/user_defined_roles_on_secondaries.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/user_defined_roles_on_secondaries.js')
-rw-r--r--jstests/auth/user_defined_roles_on_secondaries.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/auth/user_defined_roles_on_secondaries.js b/jstests/auth/user_defined_roles_on_secondaries.js
index d05d44ff749..4d44a9bbfd0 100644
--- a/jstests/auth/user_defined_roles_on_secondaries.js
+++ b/jstests/auth/user_defined_roles_on_secondaries.js
@@ -214,7 +214,8 @@ assert.commandWorked(rstest.getPrimary().getDB("admin").runCommand({
]
}));
-assert.commandWorked(rstest.getPrimary().getDB("admin").getLastErrorObj(2));
+rstest.awaitReplication();
+
rstest.nodes.forEach(function(node) {
var role = node.getDB("db1").getRole("t1");
assert.eq(1, role.roles.length, tojson(node));