From 8a481126a85f4c1add4d7f62a480ac0191c4878d Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 25 Nov 2024 10:06:15 -0500 Subject: [PATCH] Allow `SnippetizerTester` to compile against new cores --- .../org/jenkinsci/plugins/workflow/cps/SnippetizerTester.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/test/java/org/jenkinsci/plugins/workflow/cps/SnippetizerTester.java b/plugin/src/test/java/org/jenkinsci/plugins/workflow/cps/SnippetizerTester.java index cbddb5a3a..31fb47b11 100644 --- a/plugin/src/test/java/org/jenkinsci/plugins/workflow/cps/SnippetizerTester.java +++ b/plugin/src/test/java/org/jenkinsci/plugins/workflow/cps/SnippetizerTester.java @@ -85,7 +85,7 @@ protected void assertGenerateSnippet(@NonNull String url, @NonNull String json, List 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());