22 lines
382 B
Go
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)
|
|
}
|