diff --git a/registry/consul/service_discovery_test.go b/registry/consul/service_discovery_test.go
index 1410326d51301f02cb519c805ba602fe50049069..ec85d4aa9c36432fed1c3972cf59a366a284dd06 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 c1ca42341995931021dd846aa5c5d5b48e5b9de6..bf16ebdc1525fb5ff4de2e61eee25cec1c18624b 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 {