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

fix test case

parent abc8d647
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@ import (
"github.com/apache/dubbo-go/common/logger"
)
const logDir = "logs/nacos/log"
// NacosClient Nacos client
type NacosClient struct {
name string
......@@ -111,7 +113,7 @@ func ValidateNacosClient(container nacosClientFacade, opts ...option) error {
TimeoutMs: uint64(int32(container.NacosClient().Timeout / time.Millisecond)),
ListenInterval: 10000,
NotLoadCacheAtStart: true,
LogDir: "logs/nacos/log",
LogDir: logDir,
},
})
......@@ -159,7 +161,7 @@ func newNacosClient(name string, nacosAddrs []string, timeout time.Duration) (*N
TimeoutMs: uint64(timeout / time.Millisecond),
ListenInterval: 20000,
NotLoadCacheAtStart: true,
LogDir: "logs/nacos/log",
LogDir: logDir,
},
})
n.SetClient(&client)
......
......@@ -22,7 +22,7 @@ func Test_newNacosClient(t *testing.T) {
url: &registryUrl,
done: make(chan struct{}),
}
err := ValidateNacosClient(c, WithNacosName(NacosClientName))
err := ValidateNacosClient(c, WithNacosName(nacosClientName))
if err != nil {
fmt.Println("nacos client start error ,error message is", err)
}
......
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