From f21febc9e9e0c6443497001cb4f2303e7a513041 Mon Sep 17 00:00:00 2001 From: Greg DiCristofaro Date: Mon, 20 Jan 2025 18:53:46 -0500 Subject: [PATCH] try new thread instead --- .../src/org/sleuthkit/autopsy/testing/AutopsyTestCases.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Testing/src/org/sleuthkit/autopsy/testing/AutopsyTestCases.java b/Testing/src/org/sleuthkit/autopsy/testing/AutopsyTestCases.java index 86665516bb..f8e886d1d7 100644 --- a/Testing/src/org/sleuthkit/autopsy/testing/AutopsyTestCases.java +++ b/Testing/src/org/sleuthkit/autopsy/testing/AutopsyTestCases.java @@ -188,11 +188,11 @@ public class AutopsyTestCases { logger.log(Level.INFO, "setting time zone"); comboBoxOperator.setSelectedItem("(GMT-5:00) America/New_York"); // do in invoke later to allow time for validation to happen. - SwingUtilities.invokeLater(() -> { + new Thread(() -> { new Timeout("pausing", 5000).sleep(); logger.log(Level.INFO, "clicking next button"); wo.btNext().clickMouse(); - }); + }).start(); } catch (TimeoutExpiredException ex) { logger.log(Level.SEVERE, "AutopsyTestCases.testNewCaseWizard encountered timed out", ex); logSystemDiagnostics();