Index: trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java	(revision 11464)
+++ trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java	(revision 11465)
@@ -100,6 +100,5 @@
      */
     @Test
-    @SuppressFBWarnings(value = "WA_NOT_IN_LOOP")
-    public void testUnknownHost() throws IOException, InterruptedException {
+    public void testUnknownHost() throws IOException {
         String key = "key_unknown_host";
         TestCachedTileLoaderJob job = new TestCachedTileLoaderJob("http://unkownhost.unkownhost/unkown", key);
@@ -107,6 +106,10 @@
         job.submit(listener, true);
         synchronized (listener) {
-            if (!listener.ready) {
-                listener.wait();
+            while (!listener.ready) {
+                try {
+                    listener.wait();
+                } catch (InterruptedException e1) {
+                    // do nothing, still wait
+                }
             }
         }
@@ -124,6 +127,10 @@
         job.submit(listener, true);
         synchronized (listener) {
-            if (!listener.ready) {
-                listener.wait();
+            while (!listener.ready) {
+                try {
+                    listener.wait();
+                } catch (InterruptedException e1) {
+                    // do nothing, wait
+                }
             }
         }
