Fix track.scrobble test

This commit is contained in:
Rikki Tooley 2015-01-03 21:40:28 +00:00
parent 1d0c433555
commit 85474f2ea2
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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
};
}