JS tests that use dbHash incorrectly check number of collections

XMLWordPrintableJSON

    • Fully Compatible
    • TIG E (01/08/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Jonathan Abrahams (Inactive)
              Reporter:
              Kamran K. (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: