Skip to content

Commit

Permalink
Adjust expected value for TASK_ID for test to pass.
Browse files Browse the repository at this point in the history
Needed as we are scheduling the build twice.
Unsure why the test was passing with a different value some years ago.
  • Loading branch information
lacostej committed Oct 30, 2023
1 parent 8729fe9 commit 0749269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/hudson/plugins/batch_task/BatchTaskTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public void testExecute() throws Exception {
assertEquals("Cause type", UserCause.class.getName(),
ca.getCauses().get(0).getClass().getName());
String log = Util.loadFile(run.getLogFile());
assertTrue("Expected 1-1:global-property:bar:anonymous in task output: " + log,
log.contains("1-1:global-property:bar:anonymous"));
assertTrue("Expected 2-1:global-property:bar:anonymous in task output: " + log,
log.contains("2-1:global-property:bar:anonymous"));
}

/**
Expand Down

0 comments on commit 0749269

Please sign in to comment.