Commit 69e7279c by Torkel Ödegaard

fixed unit test failing on build server

parent 9e58921b
package events package events
import ( import (
"encoding/json"
"testing" "testing"
"time" "time"
...@@ -22,9 +21,6 @@ func TestEventCreation(t *testing.T) { ...@@ -22,9 +21,6 @@ func TestEventCreation(t *testing.T) {
wire, _ := ToOnWriteEvent(e) wire, _ := ToOnWriteEvent(e)
So(e.Timestamp.Unix(), ShouldEqual, wire.Timestamp.Unix()) So(e.Timestamp.Unix(), ShouldEqual, wire.Timestamp.Unix())
So(wire.EventType, ShouldEqual, "TestEvent") 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"}}`)
}) })
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment