Changeset 18478 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2022-06-08T22:20:53+02:00 (2 years ago)
Author:
taylor.smock
Message:

Really fix failing tests in VectorDataSetTest

The test failed ~50% of the time (it depended upon the HashSet ordering).
We now use an ArrayList instead, and a the optimization that caused the
failure is not as significant anymore (node search is significantly cheaper
since r18465).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/vector/VectorDataSetTest.java

    r18477 r18478  
    1414import org.awaitility.Durations;
    1515import org.junit.jupiter.api.BeforeEach;
    16 import org.junit.jupiter.api.Test;
     16import org.junit.jupiter.api.RepeatedTest;
    1717import org.junit.jupiter.api.extension.RegisterExtension;
    1818import org.openstreetmap.josm.TestUtils;
     
    9999    }
    100100
    101     @Test
     101    /**
     102     * This failed about 1/2 times.
     103     * It tests for node deduplication.
     104     */
     105    @RepeatedTest(10)
    102106    void testNodeDeduplication() {
    103107        final VectorDataSet dataSet = this.layer.getData();
Note: See TracChangeset for help on using the changeset viewer.