Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
test(timeout): extract rule to TimeoutUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
jpollak committed Dec 4, 2017
1 parent f29b328 commit 60181a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
}
Expand Down

0 comments on commit 60181a7

Please sign in to comment.