From 05eff1d5b252f03449dcf59a7b4fb8debd54c668 Mon Sep 17 00:00:00 2001 From: JayWenStar <1599603313@qq.com> Date: Mon, 17 Jan 2022 23:01:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B:=20=E4=BF=AE=E5=A4=8DTestCase?= =?UTF-8?q?=E4=B8=AD=E5=85=A8=E5=B1=80=E5=8F=82=E6=95=B0=E7=9A=84=E5=88=86?= =?UTF-8?q?=E5=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sonic/controller/services/impl/TestCasesServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-server-controller/src/main/java/org/cloud/sonic/controller/services/impl/TestCasesServiceImpl.java b/sonic-server-controller/src/main/java/org/cloud/sonic/controller/services/impl/TestCasesServiceImpl.java index 41f00f95..f723c2da 100644 --- a/sonic-server-controller/src/main/java/org/cloud/sonic/controller/services/impl/TestCasesServiceImpl.java +++ b/sonic-server-controller/src/main/java/org/cloud/sonic/controller/services/impl/TestCasesServiceImpl.java @@ -108,7 +108,7 @@ public JSONObject findSteps(int id) { Map> valueMap = new HashMap<>(); for (GlobalParams g : globalParamsList) { if (g.getParamsValue().contains("|")) { - List shuffle = Arrays.asList(g.getParamsValue().split("|")); + List shuffle = Arrays.asList(g.getParamsValue().split("\\|")); Collections.shuffle(shuffle); valueMap.put(g.getParamsKey(), shuffle); } else {