Index: applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/oauth/OAuthPortListenerTest.java
===================================================================
--- applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/oauth/OAuthPortListenerTest.java	(revision 31486)
+++ applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/oauth/OAuthPortListenerTest.java	(revision 31488)
@@ -28,4 +28,10 @@
     t.start();
     try {
+      synchronized (this) {
+        this.wait(500);
+      }
+    } catch (InterruptedException e1) {
+    }
+    try {
       URL url = new URL("http://localhost:8763?access_token=access_token");
       HttpURLConnection con = (HttpURLConnection) url.openConnection();
