diff options
Diffstat (limited to 'jstests/sharding/collation_lookup.js')
-rw-r--r-- | jstests/sharding/collation_lookup.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/sharding/collation_lookup.js b/jstests/sharding/collation_lookup.js index f9388cf9aa3..f5e928e8374 100644 --- a/jstests/sharding/collation_lookup.js +++ b/jstests/sharding/collation_lookup.js @@ -367,11 +367,11 @@ const withoutDefaultCollationColl = mongosDB[testName + "_without_default"]; assert.commandWorked( mongosDB.createCollection(withDefaultCollationColl.getName(), caseInsensitive)); -assert.writeOK(withDefaultCollationColl.insert({_id: "lowercase", str: "abc"})); +assert.commandWorked(withDefaultCollationColl.insert({_id: "lowercase", str: "abc"})); -assert.writeOK(withoutDefaultCollationColl.insert({_id: "lowercase", str: "abc"})); -assert.writeOK(withoutDefaultCollationColl.insert({_id: "uppercase", str: "ABC"})); -assert.writeOK(withoutDefaultCollationColl.insert({_id: "unmatched", str: "def"})); +assert.commandWorked(withoutDefaultCollationColl.insert({_id: "lowercase", str: "abc"})); +assert.commandWorked(withoutDefaultCollationColl.insert({_id: "uppercase", str: "ABC"})); +assert.commandWorked(withoutDefaultCollationColl.insert({_id: "unmatched", str: "def"})); // // Sharded collection with default collation and unsharded collection without a default |