Skip to content

Commit

Permalink
[hotfix] Report failure cause in test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Mar 11, 2021
1 parent b4c57c0 commit 282eb17
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ protected final void restoreAndExecute(

JobStatus jobStatus = jobStatusFuture.get(5, TimeUnit.SECONDS);

if (jobStatus == JobStatus.FAILED) {
LOG.warn(
"Job reached status failed",
client.requestJobResult(jobID)
.get()
.getSerializedThrowable()
.get()
.deserializeError(ClassLoader.getSystemClassLoader()));
}
assertNotEquals(JobStatus.FAILED, jobStatus);
} catch (Exception e) {
fail("Could not connect to job: " + e);
Expand Down

0 comments on commit 282eb17

Please sign in to comment.