Skip to content

Commit

Permalink
correct groups
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Feb 14, 2024
1 parent c7c0381 commit d101aee
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
import org.slf4j.LoggerFactory;

/**
* Test cases designed after CURATOR-45
* Test cases designed after CURATOR-45.
*/
@Tag("zk38OrLater")
@Tag("master")
public class TestLeaderSelectorEdges extends BaseClassForTests {
private final Logger log = LoggerFactory.getLogger(getClass());

Expand All @@ -61,8 +61,6 @@ public static void resetCNXFactory() {
/**
* Create a LeaderSelector but close the connection right after the "lock" znode
* has been created.
*
* @throws Exception
*/
@Test
public void flappingTest() throws Exception {
Expand All @@ -83,7 +81,7 @@ public void flappingTest() throws Exception {
// At this point the ChaosMonkeyZookeeperServer must close the connection
// right after the lock znode is created.
assertTrue(listener.reconnected.await(10, TimeUnit.SECONDS), "Connection has not been lost");
// Check that leader ship has failed
// Check that leadership has failed
assertEquals(listener.takeLeadership.getCount(), 1);
// Wait FailedDelete
Thread.sleep(ChaosMonkeyCnxnFactory.LOCKOUT_DURATION_MS * 2);
Expand Down
2 changes: 1 addition & 1 deletion curator-test-zk35/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<dependency>org.apache.curator:curator-recipes</dependency>
</dependenciesToScan>
<groups>zk35TestCompatibility</groups>
<excludedGroups>zk36,zk38OrLater</excludedGroups>
<excludedGroups>zk36</excludedGroups>
</configuration>
</plugin>
</plugins>
Expand Down
1 change: 0 additions & 1 deletion curator-test-zk36/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@
<dependency>org.apache.curator:curator-client</dependency>
</dependenciesToScan>
<groups>zk36,zk35TestCompatibility</groups>
<excludedGroups>zk38OrLater</excludedGroups>
</configuration>
</plugin>
</plugins>
Expand Down
2 changes: 1 addition & 1 deletion curator-test-zk37/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
<dependency>org.apache.curator:curator-recipes</dependency>
<dependency>org.apache.curator:curator-client</dependency>
</dependenciesToScan>
<excludedGroups>zk38OrLater</excludedGroups>
<excludedGroups>master</excludedGroups>
</configuration>
</plugin>
</plugins>
Expand Down
1 change: 1 addition & 0 deletions curator-test-zk38/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@
<dependency>org.apache.curator:curator-recipes</dependency>
<dependency>org.apache.curator:curator-client</dependency>
</dependenciesToScan>
<excludedGroups>master</excludedGroups>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit d101aee

Please sign in to comment.