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

Use of util.promisify is breaking in older versions of node (stable release)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.5
    • Affects Version/s: 3.5.5
    • Component/s: None
    • None

      getting rid of bluebird has unfortunately broken CI for the stable release: https://evergreen.mongodb.com/waterfall/mongo-node-driver-stable [

      https://mongodb.slack.com/archives/GGWBN4ZNK/p1584097050000800]

       
      [2020/03/11 17:46:18.849] /data/mci/1f45338943b413f4f15385b76180e1b6/src/test/unit/cmap/connection_pool.test.js:29
      [2020/03/11 17:46:18.849] checkOut: util.promisify(ConnectionPool.prototype.checkOut),
      [2020/03/11 17:46:18.849] ^
      [2020/03/11 17:46:18.849] TypeError: util.promisify is not a function
      [2020/03/11 17:46:18.849] at Object.<anonymous> (/data/mci/1f45338943b413f4f15385b76180e1b6/src/test/unit/cmap/connection_pool.test.js:29:18)
      [2020/03/11 17:46:18.849] at Module._compile (module.js:409:26)
      [2020/03/11 17:46:18.849] at Object.Module._extensions..js (module.js:416:10)
      [2020/03/11 17:46:18.849] at Module.load (module.js:343:32)
      [2020/03/11 17:46:18.849] at Function.Module._load (module.js:300:12)
      [2020/03/11 17:46:18.849] at Module.require (module.js:353:17)
      [2020/03/11 17:46:18.849] at require (internal/module.js:12:17)
      [2020/03/11 17:46:18.849] at /data/mci/1f45338943b413f4f15385b76180e1b6/src/node_modules/mocha/lib/mocha.js:250:27
      [2020/03/11 17:46:18.849] at Array.forEach (native)
      [2020/03/11 17:46:18.849] at Mocha.loadFiles (/data/mci/1f45338943b413f4f15385b76180e1b6/src/node_modules/mocha/lib/mocha.js:247:14)
      [2020/03/11 17:46:18.849] at Mocha.run (/data/mci/1f45338943b413f4f15385b76180e1b6/src/node_modules/mocha/lib/mocha.js:576:10)
      [2020/03/11 17:46:18.849] at Object.<anonymous> (/data/mci/1f45338943b413f4f15385b76180e1b6/src/node_modules/mocha/bin/_mocha:637:18)
      [2020/03/11 17:46:18.849] at Module._compile (module.js:409:26)
      [2020/03/11 17:46:18.849] at Object.Module._extensions..js (module.js:416:10)
      [2020/03/11 17:46:18.849] at Module.load (module.js:343:32)
      [2020/03/11 17:46:18.849] at Function.Module._load (module.js:300:12)
      [2020/03/11 17:46:18.849] at Function.Module.runMain (module.js:441:10)
      [2020/03/11 17:46:18.849] at startup (node.js:140:18)
      [2020/03/11 17:46:18.849] at node.js:1043:3
       

       

       

            Assignee:
            thomas.reggi@mongodb.com Thomas Reggi (Inactive)
            Reporter:
            thomas.reggi@mongodb.com Thomas Reggi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: