collector_go/collector_test.go
insanity@loafle.com 142f267ab9 collector
2017-04-15 20:32:56 +09:00

22 lines
382 B
Go

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