From 76bf62679504bc48df2f1d6bff97de8ac293b170 Mon Sep 17 00:00:00 2001 From: Matthew Buckett Date: Mon, 13 Jan 2014 22:40:19 +0000 Subject: [PATCH] Increase times to make failure more reliable. I wasn't getting consistent failure with the shorter times. --- .../org/rometools/feed/module/cc/types/LicenseTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/rometools/feed/module/cc/types/LicenseTest.java b/src/test/java/org/rometools/feed/module/cc/types/LicenseTest.java index 0ba3998..f5841dc 100644 --- a/src/test/java/org/rometools/feed/module/cc/types/LicenseTest.java +++ b/src/test/java/org/rometools/feed/module/cc/types/LicenseTest.java @@ -20,7 +20,7 @@ public class LicenseTest { License.clear(); } - @Test(timeout = 500) + @Test(timeout = 1000) public void testConcurrent() throws InterruptedException { final AtomicBoolean run = new AtomicBoolean(true); final AtomicLong type = new AtomicLong(0); @@ -58,12 +58,12 @@ public class LicenseTest { addNew.start(); getExisting.start(); // Let them do some stuff. - Thread.sleep(100); + Thread.sleep(400); // Get them to both stop. run.set(false); // Allow them a little time to stop. - addNew.join(20); - getExisting.join(20); + addNew.join(50); + getExisting.join(50); // Check we didn't have any problems and they have both stopped. assertFalse(hadProblem.get()); assertFalse(addNew.isAlive());