Skip to content

Commit

Permalink
Merge pull request #959 from jglick/SnippetizerTester
Browse files Browse the repository at this point in the history
Allow `SnippetizerTester` to compile against new cores
  • Loading branch information
jglick authored Dec 2, 2024
2 parents af5c179 + 8a48112 commit 9a09c44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected void assertGenerateSnippet(@NonNull String url, @NonNull String json,
List<NameValuePair> params = new ArrayList<>();
params.add(new NameValuePair("json", json));
// WebClient.addCrumb *replaces* rather than *adds*:
params.add(new NameValuePair(r.jenkins.getCrumbIssuer().getDescriptor().getCrumbRequestField(), r.jenkins.getCrumbIssuer().getCrumb(null)));
params.add(new NameValuePair(r.jenkins.getCrumbIssuer().getDescriptor().getCrumbRequestField(), r.jenkins.getCrumbIssuer().getCrumb()));
wrs.setRequestParameters(params);
WebResponse response = wc.getPage(wrs).getWebResponse();
assertEquals("text/plain", response.getContentType());
Expand Down

0 comments on commit 9a09c44

Please sign in to comment.