From b88cf66219ceda0b664c5fd18e022708d95fba20 Mon Sep 17 00:00:00 2001 From: alexstocks <alexstocks@foxmail.com> Date: Mon, 16 Mar 2020 11:03:56 +0800 Subject: [PATCH] Mod: split long line codes --- registry/kubernetes/registry_test.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/registry/kubernetes/registry_test.go b/registry/kubernetes/registry_test.go index 43a1bd79b..d464c77df 100644 --- a/registry/kubernetes/registry_test.go +++ b/registry/kubernetes/registry_test.go @@ -90,7 +90,9 @@ func (s *KubernetesRegistryTestSuite) TestConsumerDestroy() { r := s.initRegistry() - url, _ := common.NewURL("dubbo://127.0.0.1:20000/com.ikurento.user.UserProvider", common.WithParamsValue(constant.CLUSTER_KEY, "mock"), common.WithMethods([]string{"GetUser", "AddUser"})) + url, _ := common.NewURL("dubbo://127.0.0.1:20000/com.ikurento.user.UserProvider", + common.WithParamsValue(constant.CLUSTER_KEY, "mock"), + common.WithMethods([]string{"GetUser", "AddUser"})) listener, err := r.DoSubscribe(&url) if err != nil { @@ -111,7 +113,9 @@ func (s *KubernetesRegistryTestSuite) TestProviderDestroy() { r := s.initRegistry() - url, _ := common.NewURL("dubbo://127.0.0.1:20000/com.ikurento.user.UserProvider", common.WithParamsValue(constant.CLUSTER_KEY, "mock"), common.WithMethods([]string{"GetUser", "AddUser"})) + url, _ := common.NewURL("dubbo://127.0.0.1:20000/com.ikurento.user.UserProvider", + common.WithParamsValue(constant.CLUSTER_KEY, "mock"), + common.WithMethods([]string{"GetUser", "AddUser"})) err := r.Register(url) assert.NoError(t, err) @@ -126,7 +130,8 @@ func (s *KubernetesRegistryTestSuite) TestNewRegistry() { t := s.T() - regUrl, err := common.NewURL("registry://127.0.0.1:443", common.WithParamsValue(constant.ROLE_KEY, strconv.Itoa(common.PROVIDER))) + regUrl, err := common.NewURL("registry://127.0.0.1:443", + common.WithParamsValue(constant.ROLE_KEY, strconv.Itoa(common.PROVIDER))) if err != nil { t.Fatal(err) } -- GitLab