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

Test passes wrong argument to assert.soon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      jstests/sharding/mrShardedOutput.js passes a function and a timeout to assert.soon on lines 111 to 114.

          assert.soon(function(){
              return hasChunkOnShard("test.foo", shards[0]._id) && 
                     hasChunkOnShard("test.foo", shards[1]._id);
          }, 2 * 60 * 1000);
       

      This does not match the function signature for assert.soon:

      assert.soon = function(f, msg, timeout /*ms*/, interval) {

      The timeout will not be used, but will be displayed as the error message if the default 30 second timeout occurs.

        Attachments

          Activity

            People

            • Assignee:
              tad Tad Marshall
              Reporter:
              tad Tad Marshall
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: