Skip to content

bunyan 1.8.12 error with node 8.1.2 on debian #15

Description

@MatMath
$ npm test

> house_automation@0.0.1 test /home/mathieu/rpi_HouseAutomation
> NODE_ENV=test mocha

assert.js:60
  throw new errors.AssertionError({
  ^

AssertionError [ERR_ASSERTION]: "rotating-file" stream type is not supported: missing "mv" module
    at Logger.addStream (/home/mathieu/rpi_HouseAutomation/node_modules/bunyan/lib/bunyan.js:607:16)
    at /home/mathieu/rpi_HouseAutomation/node_modules/bunyan/lib/bunyan.js:470:18
    at Array.forEach (native)
    at new Logger (/home/mathieu/rpi_HouseAutomation/node_modules/bunyan/lib/bunyan.js:469:25)
    at Function.createLogger (/home/mathieu/rpi_HouseAutomation/node_modules/bunyan/lib/bunyan.js:1618:12)
    at Object.<anonymous> (/home/mathieu/rpi_HouseAutomation/src/bunyanLogs.js:14:29)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/mathieu/rpi_HouseAutomation/src/scheduler.js:1:79)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/mathieu/rpi_HouseAutomation/test/app.specs.js:9:23)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at /home/mathieu/rpi_HouseAutomation/node_modules/mocha/lib/mocha.js:250:27
    at Array.forEach (native)
    at Mocha.loadFiles (/home/mathieu/rpi_HouseAutomation/node_modules/mocha/lib/mocha.js:247:14)
    at Mocha.run (/home/mathieu/rpi_HouseAutomation/node_modules/mocha/lib/mocha.js:576:10)
    at Object.<anonymous> (/home/mathieu/rpi_HouseAutomation/node_modules/mocha/bin/_mocha:637:18)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3

with bunyan 1.8.10

$ npm test

> house_automation@0.0.1 test /home/mathieu/rpi_HouseAutomation
> NODE_ENV=test mocha



  initial test structure
 ImageMagick Not Found
 EasyImage requires ImageMagick to work. Install it from http://www.imagemagick.org/script/binary-releases.php.

    ✓ validate test structure

  test the Schedule Flow
    1) Validate that an event get emitted at Now + 10ms
    ✓ Validate that an event get emitted at time X (81ms)

  testing the blind sequence
Read PIN:  5
Write PIN:  3
Read PIN:  5
Write PIN:  3
    ✓ should validateMotorActions
Not resolving PIN:  5
Not resolving PIN:  6
Not resolving PIN:  5
Not resolving PIN:  5
Not resolving PIN:  5
Not resolving PIN:  5
Not resolving PIN:  6
Not resolving PIN:  5
Not resolving PIN:  5
Not resolving PIN:  6
Not resolving PIN:  5
Not resolving PIN:  5
Read And resolve PIN:  5
Read And resolve PIN:  6
Write And resolve PIN:  3
Write And resolve PIN:  4
Read And resolve PIN:  5
Read And resolve PIN:  5
Write And resolve PIN:  3
Write And resolve PIN:  3
    ✓ should iterate until limit reached and then resolved (3514ms)

  testing the flow of disk Utility
    ✓ Should delete ALL the filed except the last one

  Testing the Flow with OpenCV
(node:1497) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: File not supported.
(node:1497) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    2) test the image resize flow
FILE EXIST?? true
    ✓ Test the Img copy (520ms)
    3) "after all" hook


  6 passing (1m)
  3 failing

  1) test the Schedule Flow
       Validate that an event get emitted at Now + 10ms:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/mathieu/rpi_HouseAutomation/test/app.specs.js)
  

  2) Testing the Flow with OpenCV
       test the image resize flow:
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/mathieu/rpi_HouseAutomation/test/openCVManager.specs.js)
  

  3) Testing the Flow with OpenCV
       "after all" hook:
     Error: ENOENT: no such file or directory, unlink '/home/mathieu/rpi_HouseAutomation/outputData/GreatDay.jpg'
      at Object.fs.unlinkSync (fs.js:1066:18)
      at Context.after (test/openCVManager.specs.js:17:8)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions