try new thread instead

This commit is contained in:
Greg DiCristofaro 2025-01-20 18:53:46 -05:00
parent 6a59805b16
commit f21febc9e9
No known key found for this signature in database

View File

@ -188,11 +188,11 @@ public class AutopsyTestCases {
logger.log(Level.INFO, "setting time zone"); logger.log(Level.INFO, "setting time zone");
comboBoxOperator.setSelectedItem("(GMT-5:00) America/New_York"); comboBoxOperator.setSelectedItem("(GMT-5:00) America/New_York");
// do in invoke later to allow time for validation to happen. // do in invoke later to allow time for validation to happen.
SwingUtilities.invokeLater(() -> { new Thread(() -> {
new Timeout("pausing", 5000).sleep(); new Timeout("pausing", 5000).sleep();
logger.log(Level.INFO, "clicking next button"); logger.log(Level.INFO, "clicking next button");
wo.btNext().clickMouse(); wo.btNext().clickMouse();
}); }).start();
} catch (TimeoutExpiredException ex) { } catch (TimeoutExpiredException ex) {
logger.log(Level.SEVERE, "AutopsyTestCases.testNewCaseWizard encountered timed out", ex); logger.log(Level.SEVERE, "AutopsyTestCases.testNewCaseWizard encountered timed out", ex);
logSystemDiagnostics(); logSystemDiagnostics();