From 6e06c03eefc29d39ea477791258ea1b55d3d60db Mon Sep 17 00:00:00 2001 From: c00603587 Date: Thu, 19 Oct 2023 10:32:17 +0800 Subject: [PATCH] to ensure ZSentinelMasterListenerTest run as the last one Signed-off-by: c00603587 --- pom.xml | 3 +++ ...sterListenerTest.java => ZSentinelMasterListenerTest.java} | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename src/test/java/redis/clients/jedis/{SentinelMasterListenerTest.java => ZSentinelMasterListenerTest.java} (98%) diff --git a/pom.xml b/pom.xml index 5659732177..5868cb48fb 100644 --- a/pom.xml +++ b/pom.xml @@ -192,6 +192,9 @@ **/examples/*Example.java + + alphabetical + diff --git a/src/test/java/redis/clients/jedis/SentinelMasterListenerTest.java b/src/test/java/redis/clients/jedis/ZSentinelMasterListenerTest.java similarity index 98% rename from src/test/java/redis/clients/jedis/SentinelMasterListenerTest.java rename to src/test/java/redis/clients/jedis/ZSentinelMasterListenerTest.java index fe193a258b..f1c55c3bf0 100644 --- a/src/test/java/redis/clients/jedis/SentinelMasterListenerTest.java +++ b/src/test/java/redis/clients/jedis/ZSentinelMasterListenerTest.java @@ -13,9 +13,9 @@ /** * In order to simulate the scenario of active/standby switching. this test case will effect all the * sentinel test case, you can run this test case separately + * ZSentinelMasterListenerTest start with "Z" to ensure this test case should be run as last one */ -@Ignore -public class SentinelMasterListenerTest { +public class ZSentinelMasterListenerTest { private static final String MASTER_NAME = "mymaster"; public static final HostAndPort sentinel1 = HostAndPorts.getSentinelServers().get(0);