From bf95499e2c08367f60183e13cde467408fdba591 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 24 Apr 2023 11:06:17 +0100 Subject: [PATCH] JAL-629 Dynamic sleep in test --- test/jalview/bin/CommandsTest2.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++; -- 1.7.10.2