lidavidm commented on code in PR #14164: URL: https://github.com/apache/arrow/pull/14164#discussion_r984794322
########## java/adapter/avro/src/test/java/org/apache/arrow/AvroTestBase.java: ########## @@ -45,19 +46,17 @@ import org.apache.avro.io.DatumWriter; import org.apache.avro.io.DecoderFactory; import org.apache.avro.io.EncoderFactory; -import org.junit.Before; -import org.junit.ClassRule; -import org.junit.rules.TemporaryFolder; +import org.junit.jupiter.api.BeforeEach; public class AvroTestBase { - @ClassRule - public static final TemporaryFolder TMP = new TemporaryFolder(); + public Path tmp; protected AvroToArrowConfig config; - @Before - public void init() { + @BeforeEach + void prepare() throws Exception { + this.tmp = Files.createTempDirectory("avro"); Review Comment: tmpfs isn't cleaned up on Linux, at least, not until reboot. It might be easier to keep the JUnit4 implementation then. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org