diff --git a/contrib/registry/nacos/registry_test.go b/contrib/registry/nacos/registry_test.go index 59688e1cd..dd9f5b811 100644 --- a/contrib/registry/nacos/registry_test.go +++ b/contrib/registry/nacos/registry_test.go @@ -16,8 +16,9 @@ import ( ) func TestRegistry_Register(t *testing.T) { - out := exec.Command("lsof-i:8848").String() - fmt.Println(out) + exec := exec.Command("lsof-i:8848") + exec.Run() + fmt.Println(exec.String()) sc := []constant.ServerConfig{ *constant.NewServerConfig("127.0.0.1", 8848), }