From f80f50c82ae43c6c6cd6c68c2d58a12e3329e391 Mon Sep 17 00:00:00 2001 From: lucca suen <72333564+lucca-suen@users.noreply.github.com> Date: Tue, 16 May 2023 00:53:19 +0800 Subject: [PATCH] Optimize HttpUtilsTest for different operating systems (#1286) --- .../test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/common/src/test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java b/infra/common/src/test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java index f238ea96..a4e500b7 100644 --- a/infra/common/src/test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java +++ b/infra/common/src/test/java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java @@ -52,7 +52,7 @@ public class HttpUtilsTest { static final String CONTEXT_PATH = "/"; static final String PATH_NAME = "."; static final String USER_DIR = "user.dir"; - static final String PREFIX = "\\tomcat."; + static final String PREFIX = File.separator + "tomcat."; @BeforeClass public static void startWeb() throws IOException, LifecycleException {