From 120b70518436413a155b01a5f21378ce8c9ffb7a Mon Sep 17 00:00:00 2001 From: Skyenought Date: Tue, 9 Jan 2024 23:15:04 +0800 Subject: [PATCH] feat: add nacos v2 --- nacos/v2/nacos_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nacos/v2/nacos_test.go b/nacos/v2/nacos_test.go index 9554a27..25e7348 100644 --- a/nacos/v2/nacos_test.go +++ b/nacos/v2/nacos_test.go @@ -66,6 +66,7 @@ func getNamingClient() naming_client.INamingClient { // TestRegistryAndDeregister use to test Register, Deregister, NewNacosRegistry. func TestRegistryAndDeregister(t *testing.T) { + time.Sleep(20 * time.Second) register := NewNacosRegistry(namingClient) infos := []registry.Info{ { @@ -255,7 +256,6 @@ func TestResolverResolve(t *testing.T) { Weight: 10, }) assert.Nil(t, err) - h.Shutdown(context.Background()) } // TestDefaultNacosRegistry use to test NewDefaultNacosRegistry, Register and Deregister. @@ -338,8 +338,6 @@ func TestResolverDifferentGroup(t *testing.T) { assert.Nil(t, err2) assert.Equal(t, 200, status2) assert.Equal(t, "pong2", string(body2)) - srv1.Shutdown(context.Background()) - srv1.Shutdown(context.Background()) } func TestWithTag(t *testing.T) { @@ -375,7 +373,6 @@ func TestWithTag(t *testing.T) { assert.Nil(t, err) assert.Equal(t, 200, status) assert.Equal(t, "pong1", string(body)) - srv1.Shutdown(context.Background()) } // TestCompareMaps tests the compareMaps function