Dealing with random failures on overloaded machines: preload JLabel and its classes; increase the timeOut
authorJaroslav Tulach <jtulach@netbeans.org>
Mon, 28 Jun 2010 09:29:30 +0200
changeset 35623511f8a9718
parent 355 d1e7424dc988
child 357 837370f791ba
child 360 2b670a8a31ae
Dealing with random failures on overloaded machines: preload JLabel and its classes; increase the timeOut
samples/deadlock/test/org/apidesign/deadlock/DeadlockSyncOnTest.java
     1.1 --- a/samples/deadlock/test/org/apidesign/deadlock/DeadlockSyncOnTest.java	Tue Jun 01 12:08:47 2010 +0200
     1.2 +++ b/samples/deadlock/test/org/apidesign/deadlock/DeadlockSyncOnTest.java	Mon Jun 28 09:29:30 2010 +0200
     1.3 @@ -5,15 +5,13 @@
     1.4  import java.util.logging.Logger;
     1.5  import javax.swing.JFrame;
     1.6  import javax.swing.JLabel;
     1.7 -import javax.swing.JPanel;
     1.8  import javax.swing.SwingUtilities;
     1.9 -import org.junit.Test;
    1.10 -import org.netbeans.junit.Log;
    1.11  import org.netbeans.junit.NbTestCase;
    1.12  import static org.junit.Assert.*;
    1.13  
    1.14  public class DeadlockSyncOnTest extends NbTestCase {
    1.15      static final Logger LOG = Logger.getLogger(DeadlockSyncOnTest.class.getName());
    1.16 +    private static final JLabel preLoadClasses = new JLabel();
    1.17      
    1.18      public DeadlockSyncOnTest(String n) {
    1.19          super(n);
    1.20 @@ -21,7 +19,7 @@
    1.21  
    1.22      @Override
    1.23      protected int timeOut() {
    1.24 -        return 10000;
    1.25 +        return 30000;
    1.26      }
    1.27      
    1.28