Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Apr 4, 2024
1 parent 786fe1e commit b144db7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ protected FinishTestItemRQ buildFinishTestMethodRq(@Nonnull ItemStatus status, @
FinishTestItemRQ rq = new FinishTestItemRQ();
rq.setEndTime(new Date(testResult.getEndMillis()));
rq.setStatus(status.name());
if (!testResult.isSuccess()) {
if (!testResult.isSuccess() && ItemStatus.SKIPPED != status) {
rq.setDescription(getLogMessage(testResult));
}
return rq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public void startTestMethod() {
public void finishTestMethod() {
when(launch.getParameters()).thenReturn(new ListenerParameters());
when(testResult.getAttribute(RP_ID)).thenReturn(id);
when(testResult.isSuccess()).thenReturn(true);

testNGService.finishTestMethod(ItemStatus.PASSED, testResult);
verify(launch, times(1)).finishTestItem(eq(id), any(FinishTestItemRQ.class));
Expand Down

0 comments on commit b144db7

Please sign in to comment.