mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Fix track.scrobble test
This commit is contained in:
parent
1d0c433555
commit
85474f2ea2
@ -17,7 +17,7 @@ public class TrackScrobbleCommandTests : CommandIntegrationTestsBase
|
||||
[TestMethod]
|
||||
public async Task ScrobblesSingle()
|
||||
{
|
||||
var trackPlayed = DateTime.UtcNow;
|
||||
var trackPlayed = DateTime.UtcNow.AddMinutes(-1);
|
||||
var testScrobble = new Scrobble("Hot Chip", "The Warning", "Over and Over", trackPlayed, "Hot Chip", false);
|
||||
|
||||
var trackApi = new TrackApi(Auth);
|
||||
@ -40,7 +40,7 @@ public async Task ScrobblesSingle()
|
||||
"http://userserve-ak.last.fm/serve/64s/50921593.png",
|
||||
"http://userserve-ak.last.fm/serve/126/50921593.png",
|
||||
"http://userserve-ak.last.fm/serve/300x300/50921593.png"),
|
||||
TimePlayed = trackPlayed
|
||||
TimePlayed = trackPlayed.AddMilliseconds(-trackPlayed.Millisecond)
|
||||
};
|
||||
|
||||
var expectedJson = expectedTrack.TestSerialise();
|
||||
|
@ -13,7 +13,7 @@ static TestHelper()
|
||||
{
|
||||
_testSerialiserSettings = new JsonSerializerSettings
|
||||
{
|
||||
DateFormatString = "yyyy-MM-dd HH:mm:ss.SSS zzz",
|
||||
DateFormatString = "yyyy-MM-dd HH:mm:ss.fff zzz",
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user