mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01:00
Fixed broken tests
This commit is contained in:
parent
eb5a15a8ca
commit
50f66cbcca
@ -46,7 +46,7 @@ public void Setup()
|
|||||||
.With(e => e.Id = 0)
|
.With(e => e.Id = 0)
|
||||||
.With(e => e.SeriesId = _monitoredSeries.Id)
|
.With(e => e.SeriesId = _monitoredSeries.Id)
|
||||||
.With(e => e.EpisodeFileId = 0)
|
.With(e => e.EpisodeFileId = 0)
|
||||||
.With(e => e.AirDate = DateTime.Now.AddDays(-5))
|
.With(e => e.AirDateUtc = DateTime.Now.AddDays(-5))
|
||||||
.With(e => e.Monitored = true)
|
.With(e => e.Monitored = true)
|
||||||
.TheFirst(1)
|
.TheFirst(1)
|
||||||
.With(e => e.Monitored = false)
|
.With(e => e.Monitored = false)
|
||||||
@ -59,7 +59,7 @@ public void Setup()
|
|||||||
.With(e => e.Id = 0)
|
.With(e => e.Id = 0)
|
||||||
.With(e => e.SeriesId = _unmonitoredSeries.Id)
|
.With(e => e.SeriesId = _unmonitoredSeries.Id)
|
||||||
.With(e => e.EpisodeFileId = 0)
|
.With(e => e.EpisodeFileId = 0)
|
||||||
.With(e => e.AirDate = DateTime.Now.AddDays(-5))
|
.With(e => e.AirDateUtc = DateTime.Now.AddDays(-5))
|
||||||
.With(e => e.Monitored = true)
|
.With(e => e.Monitored = true)
|
||||||
.TheFirst(1)
|
.TheFirst(1)
|
||||||
.With(e => e.Monitored = false)
|
.With(e => e.Monitored = false)
|
||||||
|
@ -105,8 +105,6 @@ private List<Episode> GetEpisodes(ParsedEpisodeInfo parsedEpisodeInfo, Series se
|
|||||||
return new List<Episode>();
|
return new List<Episode>();
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: this will fail since parsed date will be local, and stored date will be UTC
|
|
||||||
//which means they will probably end up on different dates
|
|
||||||
var episodeInfo = _episodeService.GetEpisode(series.Id, parsedEpisodeInfo.AirDate.Value);
|
var episodeInfo = _episodeService.GetEpisode(series.Id, parsedEpisodeInfo.AirDate.Value);
|
||||||
|
|
||||||
if (episodeInfo != null)
|
if (episodeInfo != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user