diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2017-06-12 22:00:52 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2017-06-20 21:31:25 -0400 |
| commit | 8e59b53a6c7edd435c1779412a015d9f42f47be0 (patch) | |
| tree | bb5c84b88599cb48d2baefb2e9cd25e09de51392 | |
| parent | a2a69c3fd9f0149650f8c53d985049a38f36f238 (diff) | |
| download | lastfm-api-8e59b53a6c7edd435c1779412a015d9f42f47be0.tar.gz | |
fix tests
| -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"}}, } |
