[java] Fixing test ignorance checker for GitHub Actions
import java.util.stream.Stream;
public class IgnoreComparator {
- private Set<Browser> ignored = new HashSet<>();
+ private final Set<Browser> ignored = new HashSet<>();
// TODO(simon): reduce visibility
public void addDriver(Browser driverToIgnore) {
@@ -46,10 +46,10 @@ public boolean shouldIgnore(Ignore ignore) {
}
private boolean shouldIgnore(Stream<Ignore> ignoreList) {
- return ignoreList.anyMatch(driver ->
- (ignored.contains(driver.value()) || driver.value() == Browser.ALL)
+ return ignoreList.anyMatch(
+ driver -> (ignored.contains(driver.value()) || driver.value() == Browser.ALL)
&& (!driver.travis() || TestUtilities.isOnTravis())
- && (!driver.gitHubActions() || TestUtilities.isOnTravis())
+ && (!driver.gitHubActions() || TestUtilities.isOnGitHubActions())
&& isOpen(driver.issue()));
}
