From ed4976de904fda2466feae011b26759652d591e5 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 18 Jun 2011 10:18:25 -0700 Subject: [PATCH] Fixed notifications, episodestatus test --- NzbDrone.Core.Test/EpisodeStatusTest.cs | 2 +- NzbDrone.Core/Providers/NotificationProvider.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Core.Test/EpisodeStatusTest.cs b/NzbDrone.Core.Test/EpisodeStatusTest.cs index 62ae0d2b1..ec7996299 100644 --- a/NzbDrone.Core.Test/EpisodeStatusTest.cs +++ b/NzbDrone.Core.Test/EpisodeStatusTest.cs @@ -70,7 +70,7 @@ namespace NzbDrone.Core.Test .With(e => e.AirDate = DateTime.Now.AddDays(offsetDays)) .With(e => e.Ignored = ignored) .With(e => e.EpisodeFileId = 0) - .With(e => e.GrabDate = DateTime.Now.AddDays(-1)) + .With(e => e.GrabDate = DateTime.Now.AddHours(22)) .Build(); if (hasEpisodes) diff --git a/NzbDrone.Core/Providers/NotificationProvider.cs b/NzbDrone.Core/Providers/NotificationProvider.cs index 88f933d64..aebd6b114 100644 --- a/NzbDrone.Core/Providers/NotificationProvider.cs +++ b/NzbDrone.Core/Providers/NotificationProvider.cs @@ -7,12 +7,12 @@ namespace NzbDrone.Core.Providers { public class NotificationProvider { - private readonly Dictionary _basicNotifications = + private static readonly Dictionary _basicNotifications = new Dictionary(); - private readonly Object _lock = new object(); + private static readonly Object _lock = new object(); - private readonly Dictionary _progressNotification = + private static readonly Dictionary _progressNotification = new Dictionary(); public virtual List BasicNotifications