diff --git a/network_crawler_test.go b/network_crawler_test.go index ea00a9f..0e0203c 100644 --- a/network_crawler_test.go +++ b/network_crawler_test.go @@ -17,7 +17,7 @@ import ( type call func() crawler.Crawler -func initRPCServer(cc call) { +func startRPCServerTest(cc call) { rr:=cc() AddDelegate(pb.Crawlers_HEALTH_REDIS.String(),rr) go start(&ConfigServer{},&DataServer{}) @@ -49,7 +49,7 @@ func clientCall(t *testing.T,cl pb.Crawlers) { func TestRedisGRPC(t *testing.T) { - go initRPCServer( func() crawler.Crawler { + go startRPCServerTest( func() crawler.Crawler { rr := redis_protocol_crawler_go.NewRedisHeahthCrawler() m := make(map[string]interface{}, 0) m["ip"] = "192.168.1.104"