This is an automated email from the ASF dual-hosted git repository.

Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 5aa9517a8f refactor(registry): remove the orphaned 
shenyu-registry-consul module (#7583) (#7611)
5aa9517a8f is described below

commit 5aa9517a8fb513c3afaa3606cfe8bfefb32fc5ad
Author: konlue <[email protected]>
AuthorDate: Wed Oct 14 13:54:27 2026 +0800

    refactor(registry): remove the orphaned shenyu-registry-consul module 
(#7583) (#7611)
    
    Consul support was externalized to shenyu-plugin-store in #7508, but one
    orphaned test file was left behind. The directory has no pom.xml, is not
    listed in shenyu-registry/pom.xml modules, and references a TtlScheduler
    class that no longer exists, so it can never compile and was never part of
    any Maven reactor or CI build.
    
    Fixes #7583
---
 .../shenyu/registry/consul/TtlSchedulerTest.java   | 48 ----------------------
 1 file changed, 48 deletions(-)

diff --git 
a/shenyu-registry/shenyu-registry-consul/src/test/java/org/apache/shenyu/registry/consul/TtlSchedulerTest.java
 
b/shenyu-registry/shenyu-registry-consul/src/test/java/org/apache/shenyu/registry/consul/TtlSchedulerTest.java
deleted file mode 100644
index 1fec36305d..0000000000
--- 
a/shenyu-registry/shenyu-registry-consul/src/test/java/org/apache/shenyu/registry/consul/TtlSchedulerTest.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shenyu.registry.consul;
-
-import com.ecwid.consul.v1.ConsulClient;
-import org.junit.jupiter.api.Test;
-
-import static org.mockito.ArgumentMatchers.anyString;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.timeout;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-/**
- * Test case for {@link TtlScheduler}.
- */
-public final class TtlSchedulerTest {
-
-    @Test
-    public void heartbeatKeepsBeatingAfterFailure() {
-        final ConsulClient client = mock(ConsulClient.class);
-        when(client.agentCheckPass(anyString()))
-                .thenThrow(new RuntimeException("consul temporarily 
unavailable"))
-                .thenReturn(null);
-
-        final TtlScheduler ttlScheduler = new TtlScheduler(1, client);
-        ttlScheduler.add("test-service");
-
-        verify(client, 
timeout(5000).atLeast(2)).agentCheckPass(eq("service:test-service"));
-        ttlScheduler.shutdown();
-    }
-}

Reply via email to