Skip to content

Commit

Permalink
feat: add nacos v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought committed Jan 9, 2024
1 parent d79435f commit 120b705
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nacos/v2/nacos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 120b705

Please sign in to comment.