Skip to content

Commit 95d96f7

Browse files
authored
Merge pull request #150 from Vlatombe/waitforbuildsteptest-flakes
Flakes in WaitForBuildStepTest
2 parents 589d5c2 + 997c432 commit 95d96f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/org/jenkinsci/plugins/workflow/support/steps/build/WaitForBuildStepTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public class WaitForBuildStepTest {
173173
SemaphoreStep.success("scheduled/1", true);
174174

175175
WorkflowRun dsRun = ds.getBuildByNumber(1);
176+
SemaphoreStep.waitForStart("wait/1", dsRun);
176177
waitForWaitForBuildAction(dsRun);
177178

178179
// Abort the downstream build
@@ -201,6 +202,7 @@ public class WaitForBuildStepTest {
201202
SemaphoreStep.success("scheduled/1", true);
202203

203204
WorkflowRun dsRun = ds.getBuildByNumber(1);
205+
SemaphoreStep.waitForStart("wait/1", dsRun);
204206
waitForWaitForBuildAction(dsRun);
205207

206208
// Abort the upstream build
@@ -229,6 +231,7 @@ public class WaitForBuildStepTest {
229231
SemaphoreStep.success("scheduled/1", true);
230232

231233
WorkflowRun dsRun = ds.getBuildByNumber(1);
234+
SemaphoreStep.waitForStart("wait/1", dsRun);
232235
waitForWaitForBuildAction(dsRun);
233236

234237
// Abort the upstream build

0 commit comments

Comments
 (0)