From 695297435e5783fe6debabfdb265ffc8708ce425 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 3 Aug 2020 02:38:49 -0400 Subject: [PATCH] Fix SystemTime Fixture Failure --- .../HealthCheck/Checks/SystemTimeCheckFixture.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core.Test/HealthCheck/Checks/SystemTimeCheckFixture.cs b/src/NzbDrone.Core.Test/HealthCheck/Checks/SystemTimeCheckFixture.cs index e3885d652..8cf7f53dc 100644 --- a/src/NzbDrone.Core.Test/HealthCheck/Checks/SystemTimeCheckFixture.cs +++ b/src/NzbDrone.Core.Test/HealthCheck/Checks/SystemTimeCheckFixture.cs @@ -6,6 +6,7 @@ using NzbDrone.Common.Cloud; using NzbDrone.Common.Http; using NzbDrone.Common.Serializer; using NzbDrone.Core.HealthCheck.Checks; +using NzbDrone.Core.Localization; using NzbDrone.Core.Test.Framework; using NzbDrone.Test.Common; @@ -24,6 +25,10 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks { var json = new ServiceTimeResponse { DateTimeUtc = dateTime }.ToJson(); + Mocker.GetMock() + .Setup(s => s.GetLocalizedString(It.IsAny())) + .Returns("System time is off by more than 1 day. Scheduled tasks may not run correctly until the time is corrected"); + Mocker.GetMock() .Setup(s => s.Execute(It.IsAny())) .Returns(r => new HttpResponse(r, new HttpHeader(), Encoding.ASCII.GetBytes(json)));