Handle promise in smoke test.

This commit is contained in:
Guo Xiang Tan 2017-12-23 09:29:22 +08:00
parent d6b22e6cc1
commit 47585202cb
1 changed files with 3 additions and 1 deletions

View File

@ -230,7 +230,9 @@ const path = require('path');
});
}
await browser.close();
await exec("close browser", () => {
return browser.close();
});
console.log("ALL PASSED");
})();