From 25dda07a84a0067f6939e27a157fe931abf98f8b Mon Sep 17 00:00:00 2001 From: ascrutae Date: Thu, 14 Dec 2017 16:38:10 +0800 Subject: [PATCH] [Agent] fix jedis testcase failed --- ...sterConstructorWithListHostAndPortArgInterceptorTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apm-sniffer/apm-sdk-plugin/jedis-2.x-plugin/src/test/java/org/apache/skywalking/apm/plugin/jedis/v2/JedisClusterConstructorWithListHostAndPortArgInterceptorTest.java b/apm-sniffer/apm-sdk-plugin/jedis-2.x-plugin/src/test/java/org/apache/skywalking/apm/plugin/jedis/v2/JedisClusterConstructorWithListHostAndPortArgInterceptorTest.java index 116e4ce41f..f1520744ff 100644 --- a/apm-sniffer/apm-sdk-plugin/jedis-2.x-plugin/src/test/java/org/apache/skywalking/apm/plugin/jedis/v2/JedisClusterConstructorWithListHostAndPortArgInterceptorTest.java +++ b/apm-sniffer/apm-sdk-plugin/jedis-2.x-plugin/src/test/java/org/apache/skywalking/apm/plugin/jedis/v2/JedisClusterConstructorWithListHostAndPortArgInterceptorTest.java @@ -16,10 +16,9 @@ * */ - package org.apache.skywalking.apm.plugin.jedis.v2; -import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.Set; import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance; import org.junit.After; @@ -45,7 +44,7 @@ public class JedisClusterConstructorWithListHostAndPortArgInterceptorTest { @Before public void setUp() throws Exception { - hostAndPortSet = new HashSet(); + hostAndPortSet = new LinkedHashSet(); interceptor = new JedisClusterConstructorWithListHostAndPortArgInterceptor(); hostAndPortSet.add(new HostAndPort("127.0.0.1", 6379)); hostAndPortSet.add(new HostAndPort("127.0.0.1", 16379)); -- GitLab