From d0d1e3d7fede2f1175c3e43e02e2bd2b4668948f Mon Sep 17 00:00:00 2001
From: shen <zhangqi1@cmiot.chinamobile.com>
Date: Sat, 8 Aug 2020 12:36:18 +0800
Subject: [PATCH] test panic error

---
 registry/consul/service_discovery_test.go                    | 4 ++--
 registry/servicediscovery/service_discovery_registry_test.go | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/registry/consul/service_discovery_test.go b/registry/consul/service_discovery_test.go
index 1410326d5..ec85d4aa9 100644
--- a/registry/consul/service_discovery_test.go
+++ b/registry/consul/service_discovery_test.go
@@ -19,8 +19,6 @@ package consul
 
 import (
 	"fmt"
-	"github.com/apache/dubbo-go/common"
-	"github.com/apache/dubbo-go/remoting/consul"
 	"math/rand"
 	"strconv"
 	"testing"
@@ -32,11 +30,13 @@ import (
 )
 
 import (
+	"github.com/apache/dubbo-go/common"
 	"github.com/apache/dubbo-go/common/constant"
 	"github.com/apache/dubbo-go/common/extension"
 	"github.com/apache/dubbo-go/common/observer"
 	"github.com/apache/dubbo-go/config"
 	"github.com/apache/dubbo-go/registry"
+	"github.com/apache/dubbo-go/remoting/consul"
 )
 
 var (
diff --git a/registry/servicediscovery/service_discovery_registry_test.go b/registry/servicediscovery/service_discovery_registry_test.go
index c1ca42341..bf16ebdc1 100644
--- a/registry/servicediscovery/service_discovery_registry_test.go
+++ b/registry/servicediscovery/service_discovery_registry_test.go
@@ -127,7 +127,7 @@ type mockServiceDiscovery struct {
 }
 
 func (m *mockServiceDiscovery) Initialize(registryURL common.URL) error {
-	panic("implement me")
+	return nil
 }
 
 func (m *mockServiceDiscovery) String() string {
-- 
GitLab