This is an automated email from the ASF dual-hosted git repository.

zhaoyunxing pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/1.5 by this push:
     new d18f5cd  Fixed nacos unit test runs incorrectly in some cases
     new b670a11  Merge pull request #1374 from 
Chans-Open-Source/feature/fix-nacos-unit-test
d18f5cd is described below

commit d18f5cd00ab172dd534cd5e2b48d1a59d515030f
Author: Changeden <[email protected]>
AuthorDate: Tue Aug 10 16:59:04 2021 +0800

    Fixed nacos unit test runs incorrectly in some cases
---
 registry/nacos/registry_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/registry/nacos/registry_test.go b/registry/nacos/registry_test.go
index b828205..f7366a4 100644
--- a/registry/nacos/registry_test.go
+++ b/registry/nacos/registry_test.go
@@ -65,6 +65,7 @@ func TestNacosRegistry_Register(t *testing.T) {
                t.Errorf("register error:%s \n", err.Error())
                return
        }
+       time.Sleep(5 * time.Second)
        nacosReg := reg.(*nacosRegistry)
        service, _ := 
nacosReg.namingClient.GetService(vo.GetServiceParam{ServiceName: 
"providers:com.ikurento.user.UserProvider:1.0.0:guangzhou-idc"})
        data, _ := json.Marshal(service)

Reply via email to