From 36d20dbbba1695e17317bf23e3b48dc12fb61d78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Ckpepper=E2=80=9D?= <kp11@sanger.ac.uk>
Date: Tue, 16 Oct 2018 17:03:58 +0100
Subject: [PATCH] Added test timeout

---
 pom.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 290551fd5..d793f89dd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -131,8 +131,9 @@ Artemis is written in Java, and is available for UNIX, Macintosh and Windows sys
         <j2ssh.command.line.arg>-Dj2ssh</j2ssh.command.line.arg>
         
         <!-- Surefire unit test plugin parameters -->
-        <surefireArgLine>-Xmx4g ${noverify.command.line.arg} ${postgres.command.line.arg} -Duse_separate_classloader=false -DEMBOSS_ROOT=${emboss.installation.root}</surefireArgLine>
+        <unit.test.timeout.ms>8000</unit.test.timeout.ms>
         <surefire.num.forks>2</surefire.num.forks>
+        <surefireArgLine>-Xmx4g ${noverify.command.line.arg} ${postgres.command.line.arg} -Dtimeout=${unit.test.timeout.ms} -Duse_separate_classloader=false -DEMBOSS_ROOT=${emboss.installation.root}</surefireArgLine>
 
         <!-- Files to exclude from the build, e.g. Mac resource files. -->
         <default.file.excludes>**/log4j*.xml META-INF/* **/.DS_Store **/._*</default.file.excludes>
-- 
GitLab