Skip to content

Commit 1bccbdc

Browse files
authored
Fix tests on Jenkins 2.411 (#233)
1 parent 7592e8e commit 1bccbdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcherTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private void configureJobThrottling(FreeStyleProject project) throws IOException
247247
boolean buttonFound = false;
248248

249249
for (HtmlButton button : buttons) {
250-
if (button.getTextContent().equals(buttonText)) {
250+
if (button.getTextContent().trim().equals(buttonText)) {
251251
buttonFound = true;
252252
String checkboxName = "throttleEnabled";
253253
HtmlElement checkbox = page.getElementByName(checkboxName);
@@ -376,7 +376,7 @@ private boolean buttonFoundThusFormSubmitted(HtmlForm form, List<HtmlButton> but
376376
throws IOException {
377377
boolean buttonFound = false;
378378
for (HtmlButton button : buttons) {
379-
if (button.getTextContent().equals(buttonText)) {
379+
if (button.getTextContent().trim().equals(buttonText)) {
380380
buttonFound = true;
381381
button.click();
382382
break;

0 commit comments

Comments
 (0)