Skip to content

Commit

Permalink
Merge pull request #295 from jglick/FlowGraphTableTest
Browse files Browse the repository at this point in the history
Relaxing assertion in `FlowGraphTableTest`
  • Loading branch information
jglick authored Jan 14, 2025
2 parents b5cc063 + 8dcdaf4 commit 8b0d01a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.commons.lang.StringUtils;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.arrayContaining;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.hasSize;
import org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition;
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
Expand Down Expand Up @@ -93,7 +93,7 @@ public void corruptedFlowGraph() throws Exception {
t.build();
fail("Table construction should fail");
} catch (IllegalStateException e) {
assertThat(e.getMessage(), equalTo("Saw StepStartNode[id=199, exec=CpsFlowExecution[Owner[test0/1:test0 #1]]] twice when finding siblings of StepStartNode[id=199, exec=CpsFlowExecution[Owner[test0/1:test0 #1]]]"));
assertThat(e.getMessage(), containsString("twice when finding siblings of StepStartNode[id=199"));
}
}

Expand Down

0 comments on commit 8b0d01a

Please sign in to comment.