Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Feb 11, 2025
1 parent 14a6488 commit ec6a5e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/search/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public static class Item {
private final String group;

public Item(String name) {
this(name, null, null, null, null);
this(name, null, null, "symbol", null);
}

public Item(String name, String url, String icon, String type, String group) {
Expand Down
1 change: 1 addition & 0 deletions test/src/test/java/hudson/model/AbstractProjectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ private void testAutoCompleteResponse(JSONObject responseBody, String... project
o.put("url", JSONObject.fromObject(null));
o.put("icon", JSONObject.fromObject(null));
o.put("type", "symbol");
o.put("group", JSONObject.fromObject(null));
expected.add(o);
}
assertThat(suggestions.containsAll(expected), is(true));
Expand Down

0 comments on commit ec6a5e5

Please sign in to comment.