Skip to content

Commit c663479

Browse files
committed
Removing bogus waitForMessage (and unnecessary interrupt) from unrestorableAgent. Sometimes a failing waitForMessage seems to trigger https://maven.apache.org/surefire/maven-surefire-plugin/faq.html#corruptedstream though I cannot track down why.
1 parent 7231de1 commit c663479

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/test/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,6 @@ private static void assertLogMatches(WorkflowRun build, String regexp) throws IO
515515
WorkflowRun b = p.getLastBuild();
516516
assertTrue(b.isBuilding());
517517
SemaphoreStep.success("wait/1", null);
518-
r.waitForMessage(hudson.model.Messages.Queue_NodeOffline("dumbo"), b);
519-
b.getExecutor().interrupt();
520518
r.assertBuildStatus(Result.ABORTED, r.waitForCompletion(b));
521519
assertEquals(Collections.emptyList(), Arrays.asList(Queue.getInstance().getItems()));
522520
r.assertLogContains("dumbo has been removed for 15 sec, assuming it is not coming back", b);

0 commit comments

Comments
 (0)