Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2842

Fix failing "TestServerSelectionProse" test

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      The test

      TestServerSelectionProse/operationCount-based_selection_within_latency_window,_no_failpoint
      

      fails frequently on Evergreen CI with an error like:

          server_selection_prose_test.go:226:
              	Error Trace:	/mongo/integration/server_selection_prose_test.go:226
              	            				/mongo/integration/mongotest.go:263
              	Error:      	Max difference between 0.5 and 0.7130996309963099 allowed is 0.1, but difference was -0.2130996309963099
              	Test:       	TestServerSelectionProse/operationCount-based_selection_within_latency_window,_no_failpoint
              	Messages:   	expected server "localhost:27018" to be selected 50% (+/- 10%) of the time, but was selected 71.30996309963099% of the time
          server_selection_prose_test.go:226:
              	Error Trace:	/mongo/integration/server_selection_prose_test.go:226
              	            				/mongo/integration/mongotest.go:263
              	Error:      	Max difference between 0.5 and 0.28690036900369004 allowed is 0.1, but difference was 0.21309963099630996
              	Test:       	TestServerSelectionProse/operationCount-based_selection_within_latency_window,_no_failpoint
              	Messages:   	expected server "localhost:27017" to be selected 50% (+/- 10%) of the time, but was selected 28.690036900369005% of the time
      --- FAIL: TestServerSelectionProse (0.21s)
      

      See an example test run here

      Definition of done:

      • TestServerSelectionProse/operationCount-based_selection_within_latency_window,_no_failpoint passes reliably on Evergreen CI.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: