Whilst attempting to unit-test my Streams app I'm finding that occasionally it will fail to run as rocksDB is attempting to open files from a previous run (usually in /private/var/folders/{number}/{large string of random characters}/T/kafka-streams/test/0_0/rocksdb on MacOS.
Clearing this folder out seems to sort out the problem, but I suspect there may be a setting that I should use. It's already warning me that Using an OS temp directory in the state.dir property can cause failures with writing the checkpoint file due to the fact that this directory can be cleared by the OS - is there a setting that I should be using to stop this occurring or something I can call to clear this down before running each test? I assume this is normally handled by testDriver.close(), but if I terminate a test mid-execution this isn't always run (at least when handled using @AfterEach).