diff --git a/event_sender_test.go b/event_sender_test.go index 72fd92f..a9b1061 100644 --- a/event_sender_test.go +++ b/event_sender_test.go @@ -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,18 +22,18 @@ func TestEventSender_Start(t *testing.T) { func testNotify() { //time.Sleep(time.Second * 5) - 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) + ")" + 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) + ")" - cd := &Data{ - SensorId: "insanity", - Data: result, - } + cd := &Data{ + SensorId: "insanity", + Data: result, + } - observer.Notify(messages.QUEUE_EVENT, cd) + observer.Notify(messages.QUEUE_EVENT, cd) } log.Println("New data Notify") }