Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3277

BSON Corpus Tests Running Wrong Function

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-4.4.1
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
    • Not Needed

      When investigating some Decimal128 usages in the BSON test suite, I found that the BSON corpus tests when testing extended JSON parse errors were actually passing the scenario string to Decimal128.fromString. This will always give false positives of the errors since it's the wrong function call on the wrong object.

      Fixed with one line change to parse the JSON into EJSON.

      PR: https://github.com/mongodb/js-bson/pull/436

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: