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

Remove hard-coded URIs and ports in transaction tests

    XMLWordPrintableJSON

Details

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

    Description

      The transactions tests with useMultipleMongoses: true currently is implemented in our test runner by hard coding the hosts "localhost:27017" and "localhost:27018". We should provide a way to override that with environment variables, to be consistent with the rest of the test runner.

      The transactions_test_before_test and transactions_test_after_test in test-mongoc-transactions.c also appears to hard-code URIs in their calls to _reset_server and _disable_failpoints, respectively. This is done regardless of whether useMultipleMongoses is set, so it also applies to RS environments.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: