collector_go/collector_test.go
insanity@loafle.com 6b0730f636 collector
2017-04-17 13:13:23 +09:00

22 lines
349 B
Go

package collector_go
import (
"log"
"testing"
"time"
)
func TestCallGet(t *testing.T) {
c := Collector{}
c.Start()
time.Sleep(time.Second * 10)
log.Println("add sensor")
c.AddSensor("/network/smb/t2.conf")
time.Sleep(time.Second * 3)
log.Println("update sonsor")
c.UpdateSensor("/network/smb/t1.conf")
time.Sleep(time.Second * 20)
}