Changeset 15100 in josm


Ignore:
Timestamp:
2019-05-20T02:17:34+02:00 (5 months ago)
Author:
Don-vip
Message:

ignore by url, increase timeout

Location:
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/AbstractExtendedSourceEntryTestCase.java

    r15098 r15100  
    5858    }
    5959
    60     protected static boolean isIgnoredSubstring(String substring) {
    61         return errorsToIgnore.parallelStream().anyMatch(x -> substring.contains(x));
     60    protected boolean isIgnoredSubstring(String substring) {
     61        return errorsToIgnore.parallelStream().anyMatch(x -> substring.contains(x) || source.url.contains(x));
    6262    }
    6363}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTestIT.java

    r15098 r15100  
    9999
    100100        List<Throwable> errors = new ArrayList<>(style.getErrors());
    101         errors.stream().map(Throwable::getMessage).filter(MapPaintPreferenceTestIT::isIgnoredSubstring).forEach(ignoredErrors::add);
     101        errors.stream().map(Throwable::getMessage).filter(this::isIgnoredSubstring).forEach(ignoredErrors::add);
    102102        errors.removeIf(e -> ignoredErrors.contains(e.getMessage()));
    103103
    104104        List<String> warnings = new ArrayList<>(style.getWarnings());
    105         warnings.stream().filter(MapPaintPreferenceTestIT::isIgnoredSubstring).forEach(ignoredErrors::add);
     105        warnings.stream().filter(this::isIgnoredSubstring).forEach(ignoredErrors::add);
    106106        warnings.removeAll(ignoredErrors);
    107107
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java

    r15098 r15100  
    4646    @ClassRule
    4747    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    48     public static JOSMTestRules test = new JOSMTestRules().https().timeout(10000*60).parameters();
     48    public static JOSMTestRules test = new JOSMTestRules().https().timeout(10000*90).parameters();
    4949
    5050    /**
Note: See TracChangeset for help on using the changeset viewer.