From 986834f1db7bd344d067bb450970578acb32c10f Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 9 Jun 2022 10:38:44 +0100 Subject: [PATCH] JAL-4026 always wait 50ms before checking if the calculation worker is still running so it has time to start. --- test/jalview/gui/AlignViewportTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/jalview/gui/AlignViewportTest.java b/test/jalview/gui/AlignViewportTest.java index e0a18d6..b3c6b2a 100644 --- a/test/jalview/gui/AlignViewportTest.java +++ b/test/jalview/gui/AlignViewportTest.java @@ -328,7 +328,7 @@ public class AlignViewportTest { synchronized (this) { - while (viewport.getCalcManager().isWorking()) + do { try { @@ -336,7 +336,7 @@ public class AlignViewportTest } catch (InterruptedException e) { } - } + } while (viewport.getCalcManager().isWorking()); } } -- 1.7.10.2