提交 71ec7f41 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

debug timeout...

上级 ae82a00f
......@@ -8,7 +8,7 @@
, "pretest": "npm run lint"
, "start": "node bin/io-bot.js"
, "demo": "node example/ding-dong-bot.js"
, "test": "cross-env TAP_TIMEOUT=600 tap test/*-spec.js"
, "test": "cross-env TAP_TIMEOUT=600 node test/puppet-web-spec.js && node test/puppet-web-watchdog-spec.js"
}
, "repository": {
"type": "git"
......
......@@ -65,7 +65,7 @@ test('Puppet Web server/browser communication', function(t) {
yield pw.init()
t.pass('should be inited')
log.level = 'silly'
log.level = 'silly'
const retSocket = yield dingSocket(pw.server)
t.equal(retSocket, EXPECTED_DING_DATA, 'should got EXPECTED_DING_DATA after resolved dingSocket()')
})
......@@ -78,7 +78,6 @@ test('Puppet Web server/browser communication', function(t) {
.then(t.end)
log.level = 'info'
})
.catch(e => { t.fail(e) }) // Exception
......
......@@ -37,7 +37,7 @@ test('Puppet Web watchdog timer', function(t) {
pw.watchDog('feed to extend the dog life')
const origLogLevel = log.level
log.level = 'silent'
log.level = 'silly'
t.pass('set log.level = silent to mute log when watchDog reset wechaty')
const dong = yield waitDing(EXPECTED_DING_DATA)
log.level = origLogLevel
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册