Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/695297435e5783fe6debabfdb265ffc8708ce425 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fix SystemTime Fixture Failure

pull/4810/head
Qstick 5 years ago
parent 1a9d7c3c28
commit 695297435e

@ -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<ILocalizationService>()
.Setup(s => s.GetLocalizedString(It.IsAny<string>()))
.Returns("System time is off by more than 1 day. Scheduled tasks may not run correctly until the time is corrected");
Mocker.GetMock<IHttpClient>()
.Setup(s => s.Execute(It.IsAny<HttpRequest>()))
.Returns<HttpRequest>(r => new HttpResponse(r, new HttpHeader(), Encoding.ASCII.GetBytes(json)));

Loading…
Cancel
Save