Skip to content
Permalink
Browse files

change retry & timeout order

  • Loading branch information...
bobjacobsen committed Oct 24, 2018
1 parent 4007989 commit cc242e2440ec001df79102da9b35276374da6573
Showing with 10 additions and 10 deletions.
  1. +10 −10 java/test/apps/DecoderPro/DecoderProTest.java
@@ -3,6 +3,13 @@
import java.awt.GraphicsEnvironment;
import java.io.*;

import jmri.InstanceManager;
import jmri.managers.DefaultShutDownManager;
import jmri.util.JUnitUtil;
import jmri.util.JmriJFrame;
import jmri.util.JUnitAppender;
import jmri.util.junit.rules.RetryRule;

import org.apache.commons.io.*;
import org.junit.After;
import org.junit.Assume;
@@ -12,17 +19,10 @@
import org.junit.Rule;
import org.junit.rules.TemporaryFolder;
import org.junit.rules.Timeout;
import jmri.InstanceManager;
import jmri.managers.DefaultShutDownManager;

import jmri.util.JUnitUtil;
import jmri.util.JmriJFrame;
import jmri.util.JUnitAppender;
import jmri.util.junit.rules.RetryRule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
* This is more of an acceptance test than a unit test. It confirms that the entire
* application can start up and configure itself.
@@ -39,10 +39,10 @@
public TemporaryFolder folder = new TemporaryFolder();

@Rule
public Timeout globalTimeout = Timeout.seconds(TESTMAXTIME);
public RetryRule retryRule = new RetryRule(2); // allow 1 retry

@Rule
public RetryRule retryRule = new RetryRule(1); // allow 1 retry
public Timeout globalTimeout = Timeout.seconds(TESTMAXTIME);

@Test
public void testLaunchLocoNet() throws IOException {

0 comments on commit cc242e2

Please sign in to comment.
You can’t perform that action at this time.