Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail for Node.js >= 12 #16

Open
nileshpatra opened this issue Jan 22, 2020 · 0 comments
Open

Tests fail for Node.js >= 12 #16

nileshpatra opened this issue Jan 22, 2020 · 0 comments

Comments

@nileshpatra
Copy link

Hi, the tests fail for Node.js >= 12. Here's the log:

*[master][~/ups/string_decoder]$ npm run test
(node:5240) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

> string_decoder@1.3.0 test /home/nilesh/ups/string_decoder
> tap test/parallel/*.js && node test/verify-dependencies

assert.js:132
  throw err;
  ^

AssertionError [ERR_ASSERTION]: Unexpected global(s) found: queueMicrotask
    at process.<anonymous> (/home/nilesh/ups/string_decoder/test/common/index.js:500:12)
    at process.emit (events.js:210:5) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: undefined,
  expected: undefined,
  operator: 'fail'
}
not ok test/parallel/test-string-decoder-end.js ......... 0/1
    Command: "/usr/bin/node test-string-decoder-end.js"
    TAP version 13
    not ok 1 test/parallel/test-string-decoder-end.js
      ---
        exit:    1
        stderr:  |
          assert.js:132
            throw err;
            ^
          
          AssertionError [ERR_ASSERTION]: Unexpected global(s) found: queueMicrotask
              at process.<anonymous> (/home/nilesh/ups/string_decoder/test/common/index.js:500:12)
              at process.emit (events.js:210:5) {
            generatedMessage: false,
            code: 'ERR_ASSERTION',
            actual: undefined,
            expected: undefined,
            operator: 'fail'
          }
        command: "/usr/bin/node test-string-decoder-end.js"
      ...
    
    1..1
    # tests 1
    # fail  1
    
assert.js:132
  throw err;
  ^

AssertionError [ERR_ASSERTION]: Unexpected global(s) found: queueMicrotask
    at process.<anonymous> (/home/nilesh/ups/string_decoder/test/common/index.js:500:12)
    at process.emit (events.js:210:5) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: undefined,
  expected: undefined,
  operator: 'fail'
}
not ok test/parallel/test-string-decoder.js ............. 0/1
    Command: "/usr/bin/node test-string-decoder.js"
    TAP version 13
    not ok 1 test/parallel/test-string-decoder.js
      ---
        exit:    1
        stderr:  |
          assert.js:132
            throw err;
            ^
          
          AssertionError [ERR_ASSERTION]: Unexpected global(s) found: queueMicrotask
              at process.<anonymous> (/home/nilesh/ups/string_decoder/test/common/index.js:500:12)
              at process.emit (events.js:210:5) {
            generatedMessage: false,
            code: 'ERR_ASSERTION',
            actual: undefined,
            expected: undefined,
            operator: 'fail'
          }
        command: "/usr/bin/node test-string-decoder.js"
      ...
    
    1..1
    # tests 1
    # fail  1
    
total ................................................... 0/2

not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! string_decoder@1.3.0 test: `tap test/parallel/*.js && node test/verify-dependencies`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the string_decoder@1.3.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/nilesh/.npm/_logs/2020-01-22T17_03_37_159Z-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant