sergey-chugunov-1985 commented on code in PR #12133: URL: https://github.com/apache/ignite/pull/12133#discussion_r2154103677
########## modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/filename/AbstractDataRegionRelativeStoragePathTest.java: ########## @@ -86,14 +117,23 @@ public static List<Object[]> params() { cleanPersistenceDir(); - if (absPath) { + if (pathMode == PathMode.ABS) { U.delete(new File(storagePath(STORAGE_PATH)).getParentFile()); U.delete(new File(storagePath(STORAGE_PATH_2)).getParentFile()); + U.delete(new File(storagePath(IDX_PATH)).getParentFile()); } - else { + else if (pathMode == PathMode.RELATIVE) { U.delete(new File(U.defaultWorkDirectory(), STORAGE_PATH)); U.delete(new File(U.defaultWorkDirectory(), STORAGE_PATH_2)); + U.delete(new File(U.defaultWorkDirectory(), IDX_PATH)); } + else if (pathMode == PathMode.SEPARATE_ROOT) { + for (File f : new File(U.defaultWorkDirectory()).listFiles(f -> !f.getName().equals("log"))) + U.delete(f); + Review Comment: Unnecessary empty line -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org