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

fix test bug

上级 44e3c251
......@@ -56,7 +56,7 @@ test.serial('PuppetWeb login/logout events', async t => {
await pw.quit()
})
test.only('PuppetWeb server/browser communication', async t => {
test.serial('PuppetWeb server/browser communication', async t => {
let pw = new PuppetWeb()
t.truthy(pw, 'should instantiated a PuppetWeb')
......
......@@ -67,23 +67,13 @@ test('PuppetWebServer smoke testing', async t => {
const server = new Server(port)
t.truthy(server, 'new server instance')
// co(function* () {
const retInit = await server.init()
t.truthy(retInit, 'server:' + port + ' inited')
const retHttps = await dingHttps()
t.is(retHttps , 'dong', 'ding https got dong')
await server.quit()
// }).catch(e => { // Reject
// t.fail('co rejected:' + e)
// }).then(() => { // Finally
// server.quit()
// t.end()
// })
// .catch(e => { // Exception
// t.fail('Exception:' + e)
// })
await server.init()
t.pass('server:' + port + ' inited')
const retHttps = await dingHttps()
t.is(retHttps , 'dong', 'ding https got dong')
await server.quit()
return // The following is help functions only
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册