diff --git a/src/test/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepTest.java b/src/test/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepTest.java index 06538bab..ab674ce1 100644 --- a/src/test/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepTest.java +++ b/src/test/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepTest.java @@ -681,7 +681,7 @@ public void evaluate() throws Throwable { assertTrue(Queue.getInstance().cancel(items[0])); story.j.assertBuildStatus(Result.FAILURE, story.j.waitForCompletion(b)); - story.j.assertLogContains(Messages.ExecutorStepExecution_queue_task_cancelled(), b); + story.j.waitForMessage(Messages.ExecutorStepExecution_queue_task_cancelled(), b); FlowNode executorStartNode2 = new DepthFirstScanner().findFirstMatch(b.getExecution(), new ExecutorStepWithQueueItemPredicate()); assertNotNull(executorStartNode2); @@ -1193,7 +1193,7 @@ List currentLabels() { r.assertLogContains("hello", b); r.assertLogNotContains("world", b); r.assertLogContains("going offline", b); - r.assertLogContains("IOException: Unable to create live FilePath for " + agent.getNodeName(), b); + r.waitForMessage("IOException: Unable to create live FilePath for " + agent.getNodeName(), b); }); }