diff --git a/registry/zookeeper/registry_test.go b/registry/zookeeper/registry_test.go
index 2e2602e64c008d1944223078d29886e443267246..d915fc2ce10359f0dd1970daf019746ce066f511 100644
--- a/registry/zookeeper/registry_test.go
+++ b/registry/zookeeper/registry_test.go
@@ -126,7 +126,7 @@ func Test_UnSubscribe(t *testing.T) {
 	}
 	assert.Regexp(t, ".*ServiceEvent{Action{add}.*", serviceEvent.String())
 
-	reg2.DoUnsubscribe(&url)
+	reg2.UnSubscribe(&url, nil)
 	assert.Nil(t, reg2.listener)
 
 	defer ts.Stop()