Skip to content

Commit c688ad1

Browse files
forgot to run build command
1 parent 4c2d855 commit c688ad1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test-application/dist/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,17 @@ exports.scheduleRun = async function (params) {
411411
", " + err);
412412
}
413413
}
414-
throw("Test run failed after " + i*wait_interval + " seconds with: " + run_status.run.resultCode + ". Timeout is set to " + max_wait*wait_interval);
415414
}
416415

417416
run.downloaded_artifacts = await artifacts.getArtifact({file_artifacts: params.file_artifacts,
418417
screenshot_artifacts: params.screenshot_artifacts,
419418
log_artifacts: params.log_artifacts,
420419
arn: run.run.arn});
421420

421+
if (run_status.run.result != "PASSED") {
422+
throw("Test run failed after " + i*wait_interval + " seconds with: " + run_status.run.resultCode + ". Timeout is set to " + max_wait*wait_interval);
423+
}
424+
422425
return run_status;
423426
}
424427

0 commit comments

Comments
 (0)