From 47585202cbd5c7de17fe2f3e1cd77dbe50fbde67 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Sat, 23 Dec 2017 09:29:22 +0800 Subject: [PATCH] Handle promise in smoke test. --- test/smoke_test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/smoke_test.js b/test/smoke_test.js index 4c1e151a0cd..58ced5bb5fe 100644 --- a/test/smoke_test.js +++ b/test/smoke_test.js @@ -230,7 +230,9 @@ const path = require('path'); }); } - await browser.close(); + await exec("close browser", () => { + return browser.close(); + }); console.log("ALL PASSED"); })();