From f0f494682bd519f3675bf3c267b471d2ceba0e24 Mon Sep 17 00:00:00 2001 From: baozhecheng Date: Wed, 10 Aug 2022 21:09:36 +0800 Subject: [PATCH] fix --- contrib/registry/nacos/registry_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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), }