Skip to content

Commit

Permalink
Still cannot assume that waitForCompletion (→ isBuilding) produces a …
Browse files Browse the repository at this point in the history
…complete log file; need to use waitForMessage (→ isLogUpdated).
  • Loading branch information
jglick committed Jun 10, 2019
1 parent ab1de66 commit afd958b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class CpsThreadTest {
List<CauseOfInterruption> causes = iba.getCauses();
assertEquals(1, causes.size());
assertEquals(CauseOfInterruption.UserInterruption.class, causes.get(0).getClass());
r.assertLogContains("Finished: ABORTED", b);
r.waitForMessage("Finished: ABORTED", b); // TODO JENKINS-46076 WorkflowRun.isBuilding() can go to false before .finish has completed
r.assertLogContains("never going to stop", b);
r.assertLogNotContains("\tat ", b);
}
Expand Down

0 comments on commit afd958b

Please sign in to comment.