Skip to content

Commit

Permalink
Test flake pending jenkinsci#496.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jun 11, 2019
1 parent b9b5f9c commit 210e0f7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.JenkinsRuleNonLocalhost;

/**
Expand Down Expand Up @@ -362,7 +363,10 @@ public void terminatedPod() throws Exception {
r.waitForMessage("+ sleep", b);
deletePods(cloud.connect(), getLabels(this, name), false);
r.assertBuildStatus(Result.ABORTED, r.waitForCompletion(b));
r.waitForMessage(new ExecutorStepExecution.RemovedNodeCause().getShortDescription(), b);
// TODO could use waitForMessage after #496
while (!JenkinsRule.getLog(b).contains(new ExecutorStepExecution.RemovedNodeCause().getShortDescription())) {
Thread.sleep(100);
}
}

}

0 comments on commit 210e0f7

Please sign in to comment.