diff options
| -rw-r--r-- | marshall_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/marshall_test.go b/marshall_test.go index ad4d6fd..bb57cfd 100644 --- a/marshall_test.go +++ b/marshall_test.go @@ -6,13 +6,14 @@ import ( "fmt" "os" "testing" + "time" ) func TestMarshallXML(t *testing.T) { s := []Scrobble{ Scrobble{Artist: Correctable{Name: "Led Zeppelin"}, TrackName: Correctable{Name: "Loser"}, - Time: 1479682785, + Time: time.Unix(1479682785, 0), Album: Correctable{Name: "Mellow Gold"}}, } scrobbles := Scrobbles{Scrobbles: s, @@ -30,7 +31,7 @@ func TestMarshallXML(t *testing.T) { func TestMarshallJSON(t *testing.T) { s := []Scrobble{ Scrobble{Artist: Correctable{Name: "Mumford & Sons"}, - Time: 1479682537, + Time: time.Unix(1479682537, 0), Album: Correctable{Name: "Sign No More"}, TrackName: Correctable{Name: "Little Lion Man"}}, } |
