Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3427

Handle json_test_operation return value

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • tests
    • None

    Description

      For each operation in JSON tests, we run the method json_test_operation which conditionally checks the operation name, runs the appropriate method, .e.g, count or insertOne, and returns a boolean on whether the operation's method succeeded or failed.

      As of now, we don't handle the boolean returned by json_test_operation at all. Instead, we assume that the operation's method, e.g., insertOne will assert that its operation succeeded. If an operation's method were to return false or just not assert anything we would not know. The returned value of json_test_operation should be checked.

      Attachments

        Activity

          People

            Unassigned Unassigned
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: