From 4e686dc04fdd9aa34c332d7db3f80a5cec45da12 Mon Sep 17 00:00:00 2001 From: balasukesh Date: Fri, 6 Oct 2023 20:45:55 -0500 Subject: [PATCH] Fix flaky test in HttpUtilsTest --- .../java/cn/hippo4j/common/toolkit/http/HttpUtilsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 73e5c28240..06b55f4486 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 @@ -37,7 +37,7 @@ import java.nio.file.Path; import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; -import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; public class HttpUtilsTest { @@ -169,7 +169,7 @@ public void testRestApiPostTimeout() { @Test public void buildUrl() { - Map map = new HashMap<>(); + Map map = new LinkedHashMap<>(); map.put(password, passwordValue); map.put(username, usernameValue); String s = HttpUtil.buildUrl(url + PORT, map);