We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e0051 commit 5187199Copy full SHA for 5187199
powertools-logging/src/test/java/software/amazon/lambda/powertools/logging/internal/KeyBufferTest.java
@@ -21,6 +21,7 @@
21
import java.io.IOException;
22
import java.io.PrintStream;
23
import java.nio.channels.FileChannel;
24
+import java.nio.file.NoSuchFileException;
25
import java.nio.file.Paths;
26
import java.nio.file.StandardOpenOption;
27
import java.util.Deque;
@@ -44,7 +45,7 @@ void setUp() throws IOException {
44
45
// Clean up log file before each test
46
try {
47
FileChannel.open(Paths.get("target/logfile.json"), StandardOpenOption.WRITE).truncate(0).close();
- } catch (IOException e) {
48
+ } catch (NoSuchFileException e) {
49
// may not be there in the first run
50
}
51
0 commit comments