Ignore:
Timestamp:
2016-01-15T02:11:39+01:00 (8 years ago)
Author:
Don-vip
Message:

timeouts for unit/performance tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTest.java

    r9429 r9458  
    1212
    1313import org.junit.BeforeClass;
     14import org.junit.Rule;
    1415import org.junit.Test;
     16import org.junit.rules.Timeout;
    1517import org.openstreetmap.josm.JOSMFixture;
    1618import org.openstreetmap.josm.Main;
     
    2123 */
    2224public class PluginHandlerTest {
     25
     26    /**
     27     * Global timeout applied to all test methods.
     28     */
     29    @Rule
     30    public Timeout globalTimeout = Timeout.seconds(10*60);
    2331
    2432    /**
     
    3341     * Test that available plugins rules can be loaded.
    3442     */
    35     @Test(timeout = 10*60*1000)
     43    @Test
    3644    public void testValidityOfAvailablePlugins() {
    3745        // Download complete list of plugins
Note: See TracChangeset for help on using the changeset viewer.