Changeset 9655 in josm for trunk/test/functional


Ignore:
Timestamp:
2016-01-27T21:14:35+01:00 (4 years ago)
Author:
Don-vip
Message:

add unit test timeout to avoid hanging Jenkins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java

    r9374 r9655  
    2222import org.junit.Before;
    2323import org.junit.BeforeClass;
     24import org.junit.Rule;
    2425import org.junit.Test;
     26import org.junit.rules.Timeout;
    2527import org.openstreetmap.josm.JOSMFixture;
    2628import org.openstreetmap.josm.Main;
     
    4143
    4244    /**
     45     * Global timeout applied to all test methods.
     46     */
     47    @Rule
     48    public Timeout globalTimeout = Timeout.seconds(60);
     49
     50    /**
    4351     * builds a large data set to be used later for testing MULTI FETCH on the server
    4452     *
Note: See TracChangeset for help on using the changeset viewer.