From 6726a50e090e65a13a2672b594755805e0f6db54 Mon Sep 17 00:00:00 2001 From: olivier lamy Date: Fri, 16 Oct 2020 12:06:27 +1000 Subject: [PATCH] fix test Signed-off-by: olivier lamy --- .../src/test/java/org/eclipse/jetty/servlets/PutFilterTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/PutFilterTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/PutFilterTest.java index 2981fd71aff..6c5c519ca11 100644 --- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/PutFilterTest.java +++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/PutFilterTest.java @@ -69,6 +69,7 @@ public class PutFilterTest tester.addServlet(org.eclipse.jetty.servlet.DefaultServlet.class, "/"); FilterHolder holder = tester.addFilter(PutFilter.class, "/*", EnumSet.of(DispatcherType.REQUEST)); holder.setInitParameter("delAllowed", "true"); + tester.setAttribute("javax.servlet.context.tempdir", workDir.getPath().toFile()); // Bloody Windows does not allow file renaming if (!System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("windows")) holder.setInitParameter("putAtomic", "true");