Skip to content

Commit 0ad55de

Browse files
author
Kanhaiya Lal Singh
committed
Merge branch 'feature/releaseV3' of https://github.com/LambdaTest/node-tunnel into feature/releaseV3
2 parents d5437e0 + 134ae1d commit 0ad55de

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_js:
44
- "8"
55
- "10"
66
- "12"
7+
- "14"

lib/tunnel.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function runBinary_(self, retries, fnCallback) {
351351
// On exit if process is exit due to unable to start local Server then
352352
// Retry else log and exit
353353
self.proc.on('exit', function(code) {
354-
if (code && code === 10) {
354+
if (code && code === 3) {
355355
runBinary_(self, retries - 1, fnCallback);
356356
}
357357
console.log(`Tunnel successfully stopped`);
@@ -888,7 +888,11 @@ function retryTunnelName_(self, infoAPIPort, retries, fnCallback) {
888888
self.options,
889889
'Number of retries to to get tunnel name exceeded.'
890890
);
891-
console.log('Number of retries to to get tunnel name exceeded.');
891+
console.log(`
892+
Failed to run tunnel binary may be due to
893+
Tunnel server ts.lambdatest.com not reachable. Please run curl ts.lambdatest.com/health" to check
894+
OR
895+
Tunnel Binary not compatible to the platform. Please delete .lambdatest folder and run the test again. `);
892896
return fnCallback(null);
893897
}
894898
} catch (e) {

0 commit comments

Comments
 (0)