From fff5b32138c5abd551cf3fec8166886f0faed1ff Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 11 May 2017 19:01:23 +0900 Subject: [PATCH] test --- crawler_manager.go | 1 + crawler_manager_test.go | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) 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() }