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

fix test bug: race condition when end() not wait quit() (and clean)

上级 97e5d9a5
......@@ -70,7 +70,7 @@ test('Browser class cookie smoking tests', function(t) {
})
.then(r => { // Finally
b.quit()
t.end()
.then(_ => t.end())
})
.catch(e => { // Exception
t.fail('Exception:' + e)
......@@ -166,7 +166,8 @@ test('Browser session save & load', function(t) {
t.fail(e)
})
.then(r => { // Finally
b.quit().then(t.end)
b.quit()
.then(t.end)
})
.catch(e => { t.fail(e) }) // Exception
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册