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

Fix failing "TestServerSelectionProse" test

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • Labels:

      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: