Investigate NODE-4098 - result of bson.Timestamp.add is Long not a Timestamp

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 1
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      NODE-4098 Description

      What problem are you facing?

      > node
      > bson = require('bson')
      > bson.Timestamp.fromNumber(0).add(bson.Timestamp.ONE)
      new Long("1", true)
      

      Then after saving such a result in the database and fetching it bach, it comes as Long("1") (unsigned). This messes up deep equality assertions in tests

      What driver and relevant dependency versions are you using?

      mongodb@4.3.1
      bson@4.6.1

      Steps to reproduce?

      describes in first section above

              Assignee:
              Bailey Pearson
              Reporter:
              TPM Jira Automations Bot
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: