diff --git a/src/test/java/org/jenkinsci/plugins/authorizeproject/testutil/AuthorizeProjectJenkinsRule.java b/src/test/java/org/jenkinsci/plugins/authorizeproject/testutil/AuthorizeProjectJenkinsRule.java index ab30f3e..abc28d4 100644 --- a/src/test/java/org/jenkinsci/plugins/authorizeproject/testutil/AuthorizeProjectJenkinsRule.java +++ b/src/test/java/org/jenkinsci/plugins/authorizeproject/testutil/AuthorizeProjectJenkinsRule.java @@ -56,7 +56,7 @@ public AuthorizeProjectJenkinsRule( @Override public WebClient createWebClient() { - return new WebClient() { + WebClient webClient = new WebClient() { private static final long serialVersionUID = 3389654318647204218L; @Override @@ -68,6 +68,8 @@ public void throwFailingHttpStatusCodeExceptionIfNecessary(WebResponse webRespon super.throwFailingHttpStatusCodeExceptionIfNecessary(webResponse); } }; + webClient.getOptions().setFetchPolyfillEnabled(true); + return webClient; } public void before() throws Throwable {