Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21698

Add error-checking for isMaster() return values in jstests/libs/election_timing_test.js

    • Fully Compatible
    • TIG D (12/11/15), TIG E (01/08/16), TIG F (01/29/16), TIG 10 (02/19/16)
    • 0

      There was a build failure in Evergreen with this error:

      [js_test:election_timing] 2015-11-17T20:55:53.190+0000 2015-11-17T20:55:53.190+0000 E QUERY    [thread1] Error: first argument to bsonWoCompare must be an object :
      [js_test:election_timing] 2015-11-17T20:55:53.190+0000 ElectionTimingTest.prototype._runTimingTest@jstests/libs/election_timing_test.js:134:17
      [js_test:election_timing] 2015-11-17T20:55:53.190+0000 ElectionTimingTest@jstests/libs/election_timing_test.js:46:5
      [js_test:election_timing] 2015-11-17T20:55:53.190+0000 @jstests\replsets\election_timing.js:62:23
      [js_test:election_timing] 2015-11-17T20:55:53.190+0000 @jstests\replsets\election_timing.js:61:5
      [js_test:election_timing] 2015-11-17T20:55:53.190+0000 @jstests\replsets\election_timing.js:4:2
      

      We should add error-checking for the isMaster() return values to make it easier to debug failures in the future.

            Assignee:
            michael.grundy Michael Grundy
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: