Skip to content

Commit

Permalink
fix - Wrong status code returned for test completion (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo authored Jul 29, 2024
1 parent f7f93d4 commit e4d2842
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void onBuildTaskFinish(TaskFinishParams params) {
Arrays.asList(testParts, testStatus.getValue(), null, testFinishEx.getStackTrace()))); // TODO: test duration is missing
} else if (Objects.equals(params.getDataKind(), TaskDataKind.TEST_REPORT)) {
lsClient.sendNotification(new ExecuteCommandParams("java.gradle.buildServer.onDidFinishTestRun",
Arrays.asList(params.getTaskId().getId(), params.getMessage())));
Arrays.asList(params.getStatus().getValue(), params.getMessage())));
} else {
Either<String, Integer> id = Either.forLeft(params.getTaskId().getId());
WorkDoneProgressEnd workDoneProgressEnd = new WorkDoneProgressEnd();
Expand Down

0 comments on commit e4d2842

Please sign in to comment.