Skip to content

Commit

Permalink
fixup! feat(e2e): add e2e tests
Browse files Browse the repository at this point in the history
Ack issue with deletion
  • Loading branch information
jeqo committed Aug 29, 2023
1 parent a58fd30 commit 5135f85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ static void setupKafka(final Consumer<KafkaContainer> tsPluginSetup) throws Exce

try {
baseDir = Files.createTempDirectory("junit");
baseDir.toFile().deleteOnExit(); // works only if empty
localDataDir = baseDir.resolve(KAFKA_DATA_SUBDIR_HOST);
localDataDir.toFile().mkdirs();
localDataDir.toFile().setWritable(true, false);
Expand Down Expand Up @@ -189,6 +188,7 @@ static void stopKafka() {

static void cleanupStorage() {
if (baseDir != null) {
// TODO: failing silently atm, as docker overrides owner/group and deletion fails
FileUtils.deleteQuietly(baseDir.toFile());
}
}
Expand Down

0 comments on commit 5135f85

Please sign in to comment.