From 39c3a5d77b976e131d37476f2e7255d6058f5093 Mon Sep 17 00:00:00 2001 From: James Wahlin Date: Wed, 14 Aug 2019 13:52:59 +0000 Subject: SERVER-42773 Replace uses of the assert.writeOK() Javascript assertion with assert.commandWorked() --- jstests/sharding/shard_aware_primary_failover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jstests/sharding/shard_aware_primary_failover.js') diff --git a/jstests/sharding/shard_aware_primary_failover.js b/jstests/sharding/shard_aware_primary_failover.js index 9e7f572c3e9..d26c4e34a1c 100644 --- a/jstests/sharding/shard_aware_primary_failover.js +++ b/jstests/sharding/shard_aware_primary_failover.js @@ -37,7 +37,7 @@ var shardIdentityQuery = { var shardIdentityUpdate = { $set: {configsvrConnectionString: shardIdentityDoc.configsvrConnectionString} }; -assert.writeOK(primaryConn.getDB('admin').system.version.update( +assert.commandWorked(primaryConn.getDB('admin').system.version.update( shardIdentityQuery, shardIdentityUpdate, {upsert: true, writeConcern: {w: 'majority'}})); replTest.stopMaster(); -- cgit v1.2.1