linyimin0812 / wechaty-puppet-ioscat

Puppet Ios Cat for Wechaty
https://www.npmjs.com/package/wechaty-puppet-ioscat
Apache License 2.0
37 stars 11 forks source link

Restore `start/stop` Unit Test #4

Closed huan closed 6 years ago

linyimin0812 commented 6 years ago

In local environment, the test pass.While in Travis-ci, test Node10 can pass, but the node 9 is error. The reason is:

TAP version 13

PuppetMock restart without problem

09:12:24 ERR TypeError: task.finally is not a function not ok 1 Error: cache not exist

operator: fail
at: Object.<anonymous> (/home/travis/build/linyimin-bupt/wechaty-puppet-ioscat/src/puppet-ioscat.spec.ts:23:7)
stack: |-
  Error: Error: cache not exist
      at Test.assert [as _assert] (/home/travis/build/linyimin-bupt/wechaty-puppet-ioscat/node_modules/tape/lib/test.js:224:54)
      at Test.bound [as _assert] (/home/travis/build/linyimin-bupt/wechaty-puppet-ioscat/node_modules/tape/lib/test.js:76:32)
      at Test.fail (/home/travis/build/linyimin-bupt/wechaty-puppet-ioscat/node_modules/tape/lib/test.js:317:10)
      at Test.bound [as fail] (/home/travis/build/linyimin-bupt/wechaty-puppet-ioscat/node_modules/tape/lib/test.js:76:32)
      at Object.<anonymous> (/home/travis/build/linyimin-bupt/wechaty-puppet-ioscat/src/puppet-ioscat.spec.ts:23:7)
      at Generator.throw (<anonymous>)
      at rejected (/home/travis/build/linyimin-bupt/wechaty-puppet-ioscat/src/puppet-ioscat.spec.ts:6:65)
      at <anonymous>

... No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself. Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received The build has been terminated

huan commented 6 years ago

Oh, it's node 9`s fault.

We can remove the node 9 support.

And add a Mac os test in the CI.

linyimin0812 commented 6 years ago

OK