diff options
author | Sanika Phanse <sanika.phanse@mongodb.com> | 2023-05-17 01:29:37 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 02:36:54 +0000 |
commit | 31e93a577b5b1cef58424199d6ed325182db89de (patch) | |
tree | b2382238b87a814e60859edadd0a0c8fd892a9b6 /jstests/sharding/updateOne_without_shard_key/cluster_write_without_shard_key_basic.js | |
parent | b9ea829607a779569f7b14ea9447c92804836eb2 (diff) | |
download | mongo-31e93a577b5b1cef58424199d6ed325182db89de.tar.gz |
SERVER-77197 Change error code to NamespaceNotSharded
Diffstat (limited to 'jstests/sharding/updateOne_without_shard_key/cluster_write_without_shard_key_basic.js')
-rw-r--r-- | jstests/sharding/updateOne_without_shard_key/cluster_write_without_shard_key_basic.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/updateOne_without_shard_key/cluster_write_without_shard_key_basic.js b/jstests/sharding/updateOne_without_shard_key/cluster_write_without_shard_key_basic.js index 9afeaf3a71d..ea24eee2e23 100644 --- a/jstests/sharding/updateOne_without_shard_key/cluster_write_without_shard_key_basic.js +++ b/jstests/sharding/updateOne_without_shard_key/cluster_write_without_shard_key_basic.js @@ -359,7 +359,7 @@ function runAndVerifyCommand(testCase) { autocommit: false }; mongosConn.getCollection(unshardedCollName).insert([{_id: _id, a: aFieldValue}]); - assert.commandFailedWithCode(mongosConn.runCommand(cmdObj), ErrorCodes.InvalidOptions); + assert.commandFailedWithCode(mongosConn.runCommand(cmdObj), ErrorCodes.NamespaceNotSharded); // Must run in a transaction. cmdObj = { |