File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -164,13 +164,16 @@ exports.scheduleRun = async function (params) {
164
164
", " + err ) ;
165
165
}
166
166
}
167
- throw ( "Test run failed after " + i * wait_interval + " seconds with: " + run_status . run . resultCode + ". Timeout is set to " + max_wait * wait_interval ) ;
168
167
}
169
168
170
169
run . downloaded_artifacts = await artifacts . getArtifact ( { file_artifacts : params . file_artifacts ,
171
170
screenshot_artifacts : params . screenshot_artifacts ,
172
171
log_artifacts : params . log_artifacts ,
173
172
arn : run . run . arn } ) ;
174
173
174
+ if ( run_status . run . result != "PASSED" ) {
175
+ throw ( "Test run failed after " + i * wait_interval + " seconds with: " + run_status . run . resultCode + ". Timeout is set to " + max_wait * wait_interval ) ;
176
+ }
177
+
175
178
return run_status ;
176
179
}
Original file line number Diff line number Diff line change @@ -411,14 +411,17 @@ exports.scheduleRun = async function (params) {
411
411
", " + err);
412
412
}
413
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
414
}
416
415
417
416
run.downloaded_artifacts = await artifacts.getArtifact({file_artifacts: params.file_artifacts,
418
417
screenshot_artifacts: params.screenshot_artifacts,
419
418
log_artifacts: params.log_artifacts,
420
419
arn: run.run.arn});
421
420
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
+
422
425
return run_status;
423
426
}
424
427
You can’t perform that action at this time.
0 commit comments