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

Test passes wrong argument to assert.soon

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.0
    • 2.4.3
    • None
    • None
    • Fully Compatible
    • 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

            tad Tad Marshall
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: