diff options
Diffstat (limited to 'jstests/sharding/shard_identity_rollback.js')
-rw-r--r-- | jstests/sharding/shard_identity_rollback.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/shard_identity_rollback.js b/jstests/sharding/shard_identity_rollback.js index 25dbc2e19e4..39738521d6e 100644 --- a/jstests/sharding/shard_identity_rollback.js +++ b/jstests/sharding/shard_identity_rollback.js @@ -46,9 +46,10 @@ assert.commandWorked(priConn.getDB('admin').system.version.update( // Ensure sharding state on the primary was initialized var res = priConn.getDB('admin').runCommand({shardingState: 1}); assert(res.enabled, tojson(res)); -assert.eq(shardIdentityDoc.configsvrConnectionString, res.configServer); assert.eq(shardIdentityDoc.shardName, res.shardName); assert.eq(shardIdentityDoc.clusterId, res.clusterId); +assert.soon(() => shardIdentityDoc.configsvrConnectionString == + priConn.adminCommand({shardingState: 1}).configServer); // Ensure sharding state on the secondaries was *not* initialized secondaries.forEach(function(secondary) { |