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-12 22:00:52 -0400 |
| commit | 51e257a1741ed30463a3c26d0baa0018a8e9ae98 (patch) | |
| tree | 4fed0bfaa428c1b7113efa1b12925ff8b96dbeba /marshall_test.go | |
| parent | a8684a6aade6bac962da35a96e14667cca3c44c5 (diff) | |
| download | lastfm-api-51e257a1741ed30463a3c26d0baa0018a8e9ae98.tar.gz | |
fix tests
Diffstat (limited to 'marshall_test.go')
| -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"}}, } |
