diff --git a/test/jdk/javax/swing/SwingWorker/TestDoneBeforeDoInBackground.java b/test/jdk/javax/swing/SwingWorker/TestDoneBeforeDoInBackground.java index 83aff5a139f..21711cc1968 100644 --- a/test/jdk/javax/swing/SwingWorker/TestDoneBeforeDoInBackground.java +++ b/test/jdk/javax/swing/SwingWorker/TestDoneBeforeDoInBackground.java @@ -53,8 +53,8 @@ public class TestDoneBeforeDoInBackground { @Override protected String doInBackground() throws Exception { try { + workerStarted.countDown(); while (true) { - workerStarted.countDown(); System.out.println("Working..."); Thread.sleep(WAIT_TIME); }