event test
This commit is contained in:
parent
fffeb2ff41
commit
3ec98f796b
|
@ -4,9 +4,9 @@ import (
|
|||
"loafle.com/overflow/agent_api/observer"
|
||||
"loafle.com/overflow/agent_api/observer/messages"
|
||||
"log"
|
||||
"strconv"
|
||||
"testing"
|
||||
"time"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
func TestEventSender_Start(t *testing.T) {
|
||||
|
@ -22,11 +22,11 @@ func TestEventSender_Start(t *testing.T) {
|
|||
func testNotify() {
|
||||
//time.Sleep(time.Second * 5)
|
||||
|
||||
for i := 0; i < 20; i ++{
|
||||
for i := 0; i < 20; i++ {
|
||||
result := make(map[string]string)
|
||||
result["ab"] = "123 ( " + strconv.Itoa(i) + ")"
|
||||
result["cd"] = "456 ( "+ strconv.Itoa(i) + ")"
|
||||
result["ef"] = "789 ( "+ strconv.Itoa(i) + ")"
|
||||
result["cd"] = "456 ( " + strconv.Itoa(i) + ")"
|
||||
result["ef"] = "789 ( " + strconv.Itoa(i) + ")"
|
||||
|
||||
cd := &Data{
|
||||
SensorId: "insanity",
|
||||
|
|
Loading…
Reference in New Issue
Block a user