From 974f7068483f05e6eb8df144e92f2d9233dcb306 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Fri, 10 Jul 2015 14:35:55 -0400 Subject: [PATCH] Missing ) and use Thread.sleep --- dsl/kernel-lttng-modules.seed.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsl/kernel-lttng-modules.seed.groovy b/dsl/kernel-lttng-modules.seed.groovy index d5140a7..56fe746 100644 --- a/dsl/kernel-lttng-modules.seed.groovy +++ b/dsl/kernel-lttng-modules.seed.groovy @@ -295,7 +295,7 @@ while (toBuild.size() != 0) { ongoingBuild.push(job.scheduleBuild2(0)) println "\\t trigering" + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName) } else { - wait(random.nextInt(120000) + Thread.sleep(random.nextInt(120000)) ongoingBuild.removeAll{ it.isCancelled() || it.isDone() } } } @@ -343,7 +343,7 @@ while (toBuild.size() != 0) { ongoingBuild.push(job.scheduleBuild2(0)) println "\\t trigering " + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName) } else { - wait(random.nextInt(60000) + Thread.sleep(random.nextInt(60000)) ongoingBuild.removeAll{ it.isCancelled() || it.isDone() } } } -- 2.34.1