From 60181a7bebc0cf00618280d3355536f0b52a329f Mon Sep 17 00:00:00 2001 From: jpollak Date: Mon, 4 Dec 2017 15:46:13 +0100 Subject: [PATCH] test(timeout): extract rule to TimeoutUtils --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 59d5ebb..db2c2b7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ node('master') { git url: 'git@github.com:emartech/android-mobile-engage-sample-app.git', branch: 'master' def testFileCount = sh(returnStdout: true, script: 'find . -name "*Test.java" | wc -l').trim() as Integer - def timeoutRuleCount = sh(returnStdout: true, script: 'grep -r "^\\s*public Timeout globalTimeout = Timeout.seconds(30);" . | wc -l').trim() as Integer + def timeoutRuleCount = sh(returnStdout: true, script: 'grep -r "^\\s*public TestRule timeout = TimeoutUtils.getTimeoutRule();" . | wc -l').trim() as Integer if (testFileCount != timeoutRuleCount) { error("$testFileCount tests found, but only $timeoutRuleCount timeout rules!") }