Skip to content

Commit

Permalink
fix: remove the entry of a test class if its list is empty (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
danglotb authored Jan 5, 2021
1 parent 5de4962 commit 1d17d36
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public Map<String, Set<String>> selectTests() {
for (String testClassName : modifiedTestsPerTestClass.keySet()) {
if (selectTestsPerTestClasses.containsKey(testClassName)) {
selectTestsPerTestClasses.get(testClassName).removeAll(modifiedTestsPerTestClass.get(testClassName));
}
if (selectTestsPerTestClasses.get(testClassName).isEmpty()) {
selectTestsPerTestClasses.remove(testClassName);
if (selectTestsPerTestClasses.get(testClassName).isEmpty()) {
selectTestsPerTestClasses.remove(testClassName);
}
}
}
return selectTestsPerTestClasses;
Expand Down

0 comments on commit 1d17d36

Please sign in to comment.