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

JS tests that use dbHash incorrectly check number of collections

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:
    • Sprint:
      TIG E (01/08/16)

      Description

      Max Hirschhorn noticed that the fix for SERVER-21768 incorrectly checks .length fields on objects. For example, in this change, .length is now being called on a 'collections' object.

      assert.eq(masterHashes.collections.length,
      -                              slaveHashes.numCollections,
      +                              slaveHashes.collections.length,
      

      We should fix the tests to compare Object.keys() counts instead.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jonathan.abrahams Jonathan Abrahams
              Reporter:
              kamran.khan Kamran K.
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: