Skip to content
Snippets Groups Projects
Unverified Commit 48eac29c authored by amudong's avatar amudong Committed by GitHub
Browse files

add comment for nacos_client_test

parent 64e7585b
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,9 @@ func Test_newNacosClient(t *testing.T) {
c.wg.Add(1)
go HandleClientRestart(c)
go func() {
// c.client.Close() and <-c.client.Done() have order requirements.
// If c.client.Close() is called first.It is possible that "go HandleClientRestart(c)"
// sets c.client to nil before calling c.client.Done().
time.Sleep(time.Second)
c.client.Close()
}()
......
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