Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
  • Loading branch information
olamy committed Oct 16, 2020
1 parent fdd880b commit 6726a50
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -69,6 +69,7 @@ public void setUp() throws Exception
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");
Expand Down

0 comments on commit 6726a50

Please sign in to comment.