Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77199

Change expected responses of {upsert: true} tests in updateOne_without_shard_key_basic.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Sharding NYC 2023-05-29
    • 1

      These replacement style upserts should not include the query in the resulting document. True database response is correct, the testing framework only checks the first element of the document in `expectedResponse`, which is why the test isn't failing.

      https://github.com/mongodb/mongo/blob/0249b20d05c58ceb47375413e9eb47e028859489/jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js#L384-L416

            Assignee:
            sanika.phanse@mongodb.com Sanika Phanse (Inactive)
            Reporter:
            sanika.phanse@mongodb.com Sanika Phanse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: