1.1 --- a/openide.util/test/unit/src/org/openide/util/RequestProcessorTest.java Thu Jul 07 09:48:37 2005 +0000
1.2 +++ b/openide.util/test/unit/src/org/openide/util/RequestProcessorTest.java Thu Jul 07 11:00:03 2005 +0000
1.3 @@ -838,6 +838,13 @@
1.4 if (runIn == null) {
1.5 runIn = Thread.currentThread();
1.6 task[0].schedule (0);
1.7 +
1.8 + // wait to make sure the task is scheduled
1.9 + try {
1.10 + Thread.sleep(100);
1.11 + } catch (InterruptedException ex) {
1.12 + ex.printStackTrace();
1.13 + }
1.14 } else {
1.15 goodThread = Thread.currentThread () == runIn;
1.16 }