From 473b3f859d939f9cf6d1209c567b48b2b4ed9095 Mon Sep 17 00:00:00 2001 From: pizihao <2335715300@qq.com> Date: Thu, 11 May 2023 00:00:09 +0800 Subject: [PATCH] test : check directory(#1236) --- .../java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java b/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java index 6560348a..f238ea96 100644 --- a/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java +++ b/hippo4j-common/src/test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java @@ -82,6 +82,9 @@ public class HttpUtilsTest { // del dir String userUrl = System.getProperty(USER_DIR); File file = new File(userUrl + PREFIX + PORT); + if (!file.exists()) { + return; + } Files.walkFileTree(file.toPath(), new SimpleFileVisitor() { @Override