diff --git a/crawler_manager.go b/crawler_manager.go index 72a9e83..aafebf8 100644 --- a/crawler_manager.go +++ b/crawler_manager.go @@ -104,6 +104,7 @@ func (c *CrawlerManager)init() error { } } + return nil } diff --git a/crawler_manager_test.go b/crawler_manager_test.go index 61c2d9c..77ffdbd 100644 --- a/crawler_manager_test.go +++ b/crawler_manager_test.go @@ -15,12 +15,7 @@ import ( "loafle.com/overflow/agent_api/config_manager" "encoding/json" "fmt" - "time" - "loafle.com/overflow/agent_api/observer" - "loafle.com/overflow/agent_api/observer/messages" - conMgr "loafle.com/overflow/config_manager_go" - "sync" ) @@ -361,9 +356,9 @@ func TestJsonMa(t *testing.T) { func TestMock(t *testing.T) { - GetInstance().ConfigMgr = &ConfigManagerTest{} - - GetInstance().init() + //GetInstance().ConfigMgr = &ConfigManagerTest{} + // + //GetInstance().init() }