From d3d444288b3a7bc9bfaffaadc49680a12bc3cda0 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 3 Mar 2024 07:00:51 +1000 Subject: [PATCH] Some test tweaks --- tests/backend/MessageHandlerTests.java | 2 +- tests/frontend/UpdateStylesBenchmarkTests.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/backend/MessageHandlerTests.java b/tests/backend/MessageHandlerTests.java index 2325001..38f636b 100644 --- a/tests/backend/MessageHandlerTests.java +++ b/tests/backend/MessageHandlerTests.java @@ -63,7 +63,7 @@ public void setUp() throws Exception public void tearDown () throws Exception { // Reporter.log("Deleting testing profile.", true); - testServer.quitChannels(); + // testServer.quitChannels(); // URProfilesUtil.getActiveProfilePath().sync(); // URProfilesUtil.getActiveProfilePath().sync(); URProfilesUtil.deleteProfile(testDriver.getTestProfileName(), false); diff --git a/tests/frontend/UpdateStylesBenchmarkTests.java b/tests/frontend/UpdateStylesBenchmarkTests.java index 34b6c6c..5870edf 100644 --- a/tests/frontend/UpdateStylesBenchmarkTests.java +++ b/tests/frontend/UpdateStylesBenchmarkTests.java @@ -121,7 +121,7 @@ public void changeFontBenchmark () throws InterruptedException } - @Test + @Test(timeOut = 5000) public void changeColoursBenchmark () throws InterruptedException, BadLocationException { Instant startBenchmark = Instant.now(); @@ -149,7 +149,7 @@ public void changeColoursBenchmark () throws InterruptedException, BadLocationEx log("Check current style has updated.", true); URStyle channelStyle = null; - + while (channelStyle == null || !channelStyle.equals(newStyle)) { TimeUnit.MILLISECONDS.sleep(10);