From: Ben Soares Date: Mon, 24 Apr 2023 10:06:17 +0000 (+0100) Subject: JAL-629 Dynamic sleep in test X-Git-Tag: Release_2_11_4_0~380 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bf95499e2c08367f60183e13cde467408fdba591;p=jalview.git JAL-629 Dynamic sleep in test --- diff --git a/test/jalview/bin/CommandsTest2.java b/test/jalview/bin/CommandsTest2.java index 27759b9..34966ae 100644 --- a/test/jalview/bin/CommandsTest2.java +++ b/test/jalview/bin/CommandsTest2.java @@ -68,8 +68,8 @@ public class CommandsTest2 Jalview.main(args); try { - // sleep for slow build server to open viewer window - Thread.sleep(2500); + // sleep for slow build server to open annotations and viewer windows + Thread.sleep(seqNum * 100 + annNum * 200 + viewerNum * 1500); } catch (InterruptedException e) { e.printStackTrace(); @@ -101,7 +101,7 @@ public class CommandsTest2 int dcount = 0; for (AlignmentAnnotation aa : aas) { - System.err.println("##### DIAGNOSIS: annotation " + dcount + System.err.println("##### DIAGNOSIS: annotation " + ++dcount + " is labelled '" + aa.label + "'"); if (aa.visible) visibleAnn++;