Skip to content

Commit d40f8c0

Browse files
author
Sijo Cheeran
committed
Minor bug fix
1 parent f27220a commit d40f8c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696
if (!process.env['CBT_TUNNELS_USERNAME'] || !process.env['CBT_TUNNELS_AUTHKEY'])
9797
throw new Error(AUTH_FAILED_ERROR);
9898

99-
CBTConnector.start({ 'username': process.env['CBT_TUNNELS_USERNAME'], 'authkey': process.env['CBT_TUNNELS_AUTHKEY'] }, function (err) {
99+
await CBTConnector.start({ 'username': process.env['CBT_TUNNELS_USERNAME'], 'authkey': process.env['CBT_TUNNELS_AUTHKEY'] }, async function (err) {
100100
if (!err) {
101101

102102
var colon = browserName.indexOf(':');
@@ -133,7 +133,7 @@ export default {
133133

134134
capabilities.name = `TestCafe test run ${id}`;
135135

136-
startBrowser(id, pageUrl, capabilities);
136+
await startBrowser(id, pageUrl, capabilities);
137137
}
138138

139139
});

0 commit comments

Comments
 (0)