collector_go/collector_test.go

20 lines
258 B
Go
Raw Normal View History

2017-04-13 03:43:39 +00:00
package collector_go
2017-04-14 10:09:51 +00:00
import (
"testing"
"time"
)
2017-04-13 03:43:39 +00:00
func TestCallGet(t *testing.T) {
2017-04-14 10:09:51 +00:00
c := Collector{}
c.Start()
2017-04-13 03:43:39 +00:00
2017-04-14 10:09:51 +00:00
time.Sleep(time.Second * 30)
2017-04-13 03:43:39 +00:00
2017-04-14 10:09:51 +00:00
container := ""
crawler := ""
id := ""
c.AddSensor(container, crawler, id)
time.Sleep(time.Second * 30)
}