Skip to content
Snippets Groups Projects
Commit bb020586 authored by amudong's avatar amudong
Browse files

fix:nacos client_test bug

parent d0d3ac19
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ package nacos
import (
"strings"
"testing"
"time"
)
import (
......@@ -25,7 +26,10 @@ func Test_newNacosClient(t *testing.T) {
assert.NoError(t, err)
c.wg.Add(1)
go HandleClientRestart(c)
c.client.Close()
go func() {
time.Sleep(time.Second*10)
c.client.Close()
}()
<-c.client.Done()
c.Destroy()
}
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