Skip to content

Commit a6ba96b

Browse files
committed
unit tests: delete temp files
1 parent c7734ef commit a6ba96b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/com/maxmind/db/DecoderTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ private static <T> void testTypeDecoding(Decoder.Type type, Map<T, byte[]> tests
472472
*/
473473
private static FileChannel getFileChannel(byte[] data) throws IOException {
474474
File file = File.createTempFile(UUID.randomUUID().toString(), "tmp");
475+
file.deleteOnExit();
475476
RandomAccessFile raf = new RandomAccessFile(file, "rw");
476477
FileChannel fc = raf.getChannel();
477478
fc.write(ByteBuffer.wrap(data));

0 commit comments

Comments
 (0)