Skip to content

Commit

Permalink
修复单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
leyou240 committed Jul 31, 2024
1 parent 59cf667 commit 5282c98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions v2/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
"github.com/nacos-group/nacos-sdk-go/v2/clients/naming_client"
"github.com/nacos-group/nacos-sdk-go/v2/common/constant"
"github.com/nacos-group/nacos-sdk-go/v2/vo"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -188,7 +187,7 @@ func TestNacosMultipleInstancesWithDefaultNacosRegistry(t *testing.T) {
Clusters: []string{clusterName},
HealthyOnly: true,
})
assert.Equal(t, errors.New("instance list is empty!"), err)
assert.Equal(t, "instance list is empty!", err.Error())
assert.Equal(t, 0, len(res))
}

Expand Down

0 comments on commit 5282c98

Please sign in to comment.