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());