From 8e59b53a6c7edd435c1779412a015d9f42f47be0 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 12 Jun 2017 22:00:52 -0400 Subject: fix tests --- marshall_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'marshall_test.go') 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"}}, } -- cgit v1.2.3-70-g09d2