diff --git a/cluster/router/condition/factory_test.go b/cluster/router/condition/factory_test.go
index aed8913ea596f1d8ec1707ea213f54dcf30d6484..c00c1903cb439db806c99de6aa7d76e5fbcc2e82 100644
--- a/cluster/router/condition/factory_test.go
+++ b/cluster/router/condition/factory_test.go
@@ -233,7 +233,12 @@ func TestRoute_ReturnEmpty(t *testing.T) {
 
 func TestRoute_ReturnAll(t *testing.T) {
 	localIP, _ := gxnet.GetLocalIP()
-	invokers := []protocol.Invoker{&MockInvoker{}, &MockInvoker{}, &MockInvoker{}}
+	urlString := "dubbo://" + localIP + "/com.foo.BarService"
+	dubboURL, _ := common.NewURL(context.TODO(), urlString)
+	mockInvoker1 := NewMockInvoker(dubboURL, 1)
+	mockInvoker2 := NewMockInvoker(dubboURL, 1)
+	mockInvoker3 := NewMockInvoker(dubboURL, 1)
+	invokers := []protocol.Invoker{mockInvoker1, mockInvoker2, mockInvoker3}
 	inv := &invocation.RPCInvocation{}
 	rule := base64.URLEncoding.EncodeToString([]byte("host = " + localIP + " => " + " host = " + localIP))
 	curl, _ := common.NewURL(context.TODO(), "consumer://"+localIP+"/com.foo.BarService")