Skip to content

Commit 52ed5f8

Browse files
Merge pull request #353 from sushobhit-lt/stage
fix poling issue
2 parents d9d306d + 3037ea6 commit 52ed5f8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-cli",
3-
"version": "4.1.28",
3+
"version": "4.1.29",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

src/commander/server.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ command
5050

5151
try {
5252
await tasks.run(ctx);
53-
startPingPolling(ctx);
54-
if (ctx.options.fetchResults) {
53+
if (ctx.build && ctx.build.id) {
54+
startPingPolling(ctx);
55+
}
56+
if (ctx.options.fetchResults && ctx.build && ctx.build.id) {
5557
startPolling(ctx, '', false, '')
5658
}
57-
5859

5960
} catch (error) {
6061
console.error('Error during server execution:', error);

0 commit comments

Comments
 (0)