From d8106017082e2dc04bd682b2c4131708f8222b31 Mon Sep 17 00:00:00 2001 From: Michael Minella Date: Wed, 6 Apr 2016 14:21:23 -0500 Subject: [PATCH] Added message for debugging timing issues in tests --- .../task/batch/partition/DeployerPartitionHandlerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-task-batch/src/test/java/org/springframework/cloud/task/batch/partition/DeployerPartitionHandlerTests.java b/spring-cloud-task-batch/src/test/java/org/springframework/cloud/task/batch/partition/DeployerPartitionHandlerTests.java index 81f38dd1..7a08764f 100644 --- a/spring-cloud-task-batch/src/test/java/org/springframework/cloud/task/batch/partition/DeployerPartitionHandlerTests.java +++ b/spring-cloud-task-batch/src/test/java/org/springframework/cloud/task/batch/partition/DeployerPartitionHandlerTests.java @@ -460,7 +460,7 @@ public class DeployerPartitionHandlerTests { validateStepExecutionResults(results); - assertTrue(endTime.getTime() - startTime.getTime() > 20000); + assertTrue("Time difference was too small: " + (endTime.getTime() - startTime.getTime()), endTime.getTime() - startTime.getTime() > 20000); } @Test(expected = TimeoutException.class)