Skip to content

Commit a1f450b

Browse files
authored
Merge pull request #72 from LambdaTest/dev
Dev
2 parents 30f71f4 + 5d68a61 commit a1f450b

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

commands/run.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,19 @@ module.exports = function (args) {
7575
.run_batches(lt_config, batches, env)
7676
.then(function (exit_code) {
7777
console.log("stopping tunnel");
78-
tunnelInstance.stop();
79-
if (
80-
lt_config["run_settings"]["exit-on-failure"]
81-
) {
82-
process.exit(exit_code);
83-
}
78+
tunnelInstance.stop().then(function (done) {
79+
if (
80+
lt_config["run_settings"]["exit-on-failure"]
81+
) {
82+
process.exit(exit_code);
83+
}
84+
});
85+
})
86+
.catch(function (error) {
87+
console.log(
88+
"Error occured while stopping tunnel"
89+
);
90+
console.log(error);
8491
})
8592
.catch(function (error) {
8693
console.log("stopping tunnel failed");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lambdatest-cypress-cli",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",
55
"homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",
66
"author": "LambdaTest <[email protected]>",

0 commit comments

Comments
 (0)