We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c2d855 commit c688ad1Copy full SHA for c688ad1
test-application/dist/index.js
@@ -411,14 +411,17 @@ exports.scheduleRun = async function (params) {
411
", " + err);
412
}
413
414
- throw("Test run failed after " + i*wait_interval + " seconds with: " + run_status.run.resultCode + ". Timeout is set to " + max_wait*wait_interval);
415
416
417
run.downloaded_artifacts = await artifacts.getArtifact({file_artifacts: params.file_artifacts,
418
screenshot_artifacts: params.screenshot_artifacts,
419
log_artifacts: params.log_artifacts,
420
arn: run.run.arn});
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
+
425
return run_status;
426
427
0 commit comments