Skip to content

Commit 0924b1d

Browse files
committed
Windows prevents folder deletion if log file is still locked. There is
no easy mechanism for closing a JUL log file once it is used, so we'll ignore the deletion failure.
1 parent b216d52 commit 0924b1d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

api/src/test/java/feign/MultipleLoggerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
import java.lang.reflect.Field;
2020
import org.junit.jupiter.api.Test;
2121
import org.junit.jupiter.api.io.TempDir;
22+
import org.junit.jupiter.api.io.TempDirDeletionStrategy.IgnoreFailures;
2223

2324
public class MultipleLoggerTest {
2425

25-
@TempDir public File tmp;
26+
@TempDir(deletionStrategy = IgnoreFailures.class) public File tmp;
2627

2728
private static java.util.logging.Logger getInnerLogger(Logger.JavaLogger logger)
2829
throws Exception {

0 commit comments

Comments
 (0)