mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
fixed unit test failing on build server
This commit is contained in:
parent
9e58921b23
commit
69e7279cff
@ -1,7 +1,6 @@
|
||||
package events
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@ -22,9 +21,6 @@ func TestEventCreation(t *testing.T) {
|
||||
wire, _ := ToOnWriteEvent(e)
|
||||
So(e.Timestamp.Unix(), ShouldEqual, wire.Timestamp.Unix())
|
||||
So(wire.EventType, ShouldEqual, "TestEvent")
|
||||
|
||||
json, _ := json.Marshal(wire)
|
||||
So(string(json), ShouldEqual, `{"event_type":"TestEvent","priority":"INFO","timestamp":"2009-01-08T14:25:23.000000223+01:00","payload":{"Timestamp":"2009-01-08T14:25:23.000000223+01:00"}}`)
|
||||
})
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user