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

Do not require session support to run CRUD tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.17.0-beta2, 1.17.0
    • Affects Version/s: None
    • Component/s: Testing
    • Labels:
      None

      Crud tests are skipped if libmongoc is not built with sessions support:
      https://github.com/mongodb/mongo-c-driver/blob/1.16.0/src/libmongoc/tests/test-mongoc-crud.c/#L40-L43

         install_json_test_suite_with_check (suite,
                                             resolved,
                                             &test_crud_cb,
                                             test_framework_skip_if_no_sessions);
      

      But I do not believe this should require driver sessions support. However, changing this to:

         install_json_test_suite_with_check (suite,
                                             resolved,
                                             &test_crud_cb,
                                             TestSuite_CheckLive);
      

      Does result in some test failures:
      https://evergreen.mongodb.com/version/5e418a2232f4174d3be1b9c3

      Which I cannot reproduce locally on my macOS machine.

            Assignee:
            roberto.sanchez@mongodb.com Roberto Sanchez
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: