Skip to content
Snippets Groups Projects
Commit 860f20aa authored by 邹毅贤's avatar 邹毅贤
Browse files

fix test case

parent f961e364
No related branches found
No related tags found
No related merge requests found
package nacos
import (
"context"
"fmt"
"testing"
)
......@@ -15,7 +14,7 @@ import (
)
func Test_newNacosClient(t *testing.T) {
registryUrl, _ := common.NewURL(context.TODO(), "registry://console.nacos.io:80")
registryUrl, _ := common.NewURL("registry://console.nacos.io:80")
c := &nacosDynamicConfiguration{
url: &registryUrl,
done: make(chan struct{}),
......
......@@ -17,7 +17,6 @@
package nacos
import (
"context"
"fmt"
"sync"
"testing"
......@@ -36,7 +35,7 @@ import (
)
func initNacosData(t *testing.T) (*nacosDynamicConfiguration, error) {
regurl, _ := common.NewURL(context.TODO(), "registry://console.nacos.io:80")
regurl, _ := common.NewURL("registry://console.nacos.io:80")
nacosConfiguration, err := newNacosDynamicConfiguration(&regurl)
if err != nil {
fmt.Println("error:newNacosDynamicConfiguration", err.Error())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment