JAL-2314 Fixes to DisorderAnnotExportImport test
authorkiramt <k.mourao@dundee.ac.uk>
Fri, 24 Mar 2017 09:35:24 +0000 (09:35 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Fri, 24 Mar 2017 09:39:46 +0000 (09:39 +0000)
test/jalview/ws/jabaws/DisorderAnnotExportImport.java

index 9b1dc19..2714d6c 100644 (file)
@@ -69,12 +69,19 @@ public class DisorderAnnotExportImport
 
   public static jalview.gui.AlignFrame af = null;
 
-  @BeforeClass(inheritGroups = true)
+  @BeforeClass(alwaysRun = true)
   public static void setUpBeforeClass() throws Exception
   {
     Cache.loadProperties("test/jalview/io/testProps.jvprops");
     Cache.initLogger();
     disc = JalviewJabawsTestUtils.getJabawsDiscoverer();
+
+    while (disc.isRunning())
+    {
+      // don't get services until discoverer has finished
+      Thread.sleep(100);
+    }
+
     iupreds = new ArrayList<Jws2Instance>();
     for (Jws2Instance svc : disc.getServices())
     {