Skip to content

Commit

Permalink
Merge pull request #612 from jglick/NodeExecutorsTest
Browse files Browse the repository at this point in the history
Relax assertion in `NodeExecutorsTest`
  • Loading branch information
jglick authored Jan 14, 2025
2 parents 6479d73 + 0dfd600 commit 4dd2021
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,13 @@ public void addContentsRunningBuild() throws Exception {
assertTrue(Pattern.compile("- currentWorkUnit:.*" + workflowRun.getFullDisplayName() + ".*")
.matcher(scanner.nextLine())
.find());
assertTrue(Pattern.compile("- executable:.*" + workflowRun.getFullDisplayName() + ".*")
.matcher(scanner.nextLine())
.find());
assertTrue(
executorMd,
Pattern.compile("- executable:.*(" + workflowRun.getExternalizableId()
+ /* TODO delete after https://github.com/jenkinsci/workflow-job-plugin/pull/499 */ "|"

Check warning on line 130 in src/test/java/com/cloudbees/jenkins/support/impl/NodeExecutorsTest.java

View check run for this annotation

ci.jenkins.io / Open Tasks Scanner

TODO

+ workflowRun.getFullDisplayName() + ").*")
.matcher(scanner.nextLine())
.find());
assertTrue(scanner.nextLine().contains("- elapsedTime: "));
assertFalse(scanner.hasNextLine());
scanner.close();
Expand Down

0 comments on commit 4dd2021

Please sign in to comment.