Changeset 19270 in josm


Ignore:
Timestamp:
2024-12-11T16:09:06+01:00 (6 hours ago)
Author:
stoecker
Message:

prevent CI test failures on Windows java 11, where 500ms are only 497ms sometimes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/testutils/MapModeUtils.java

    r19227 r19270  
    55
    66import java.awt.event.MouseEvent;
     7import java.util.concurrent.TimeUnit;
    78
    89import org.awaitility.Awaitility;
     
    8182        MainApplication.getMap().mapMode.mousePressed(mouseClickAt(from));
    8283        // Some actions wait a period of time to avoid accidental dragging.
    83         Awaitility.await().pollDelay(Durations.FIVE_HUNDRED_MILLISECONDS).atLeast(Durations.FIVE_HUNDRED_MILLISECONDS).until(() -> true);
     84        Awaitility.await().pollDelay(Durations.FIVE_HUNDRED_MILLISECONDS).atLeast(490, TimeUnit.MILLISECONDS).until(() -> true);
    8485        MainApplication.getMap().mapMode.mouseDragged(mouseClickAt(from));
    8586        MainApplication.getMap().mapMode.mouseDragged(mouseClickAt(to));
Note: See TracChangeset for help on using the changeset viewer.