Skip to content

Commit

Permalink
Fix Nicolai's mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael1993 committed Nov 16, 2023
1 parent d3a4fd7 commit 1cce91e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import static org.junit.platform.engine.TestExecutionResult.Status;

import java.util.List;
import java.util.Map;
import java.util.ServiceLoader;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
Expand Down Expand Up @@ -60,7 +59,8 @@ public void reportingEntryPublished(TestIdentifier testIdentifier, ReportEntry e
var messages = entry.getKeyValuePairs();
var testId = testIdentifier.getUniqueId();
// because test IDs are unique, we can be sure that the report entries belong to the same test
var testCaseBuilder = testCases.getOrDefault(testId, new IssueTestCaseBuilder(testId));
testCases.putIfAbsent(testId, new IssueTestCaseBuilder(testId));
var testCaseBuilder = testCases.get(testId);

if (messages.containsKey(REPORT_ENTRY_KEY)) {
var issueId = messages.get(REPORT_ENTRY_KEY);
Expand Down

0 comments on commit 1cce91e

Please sign in to comment.