From 4f7dc94b94bda49443c28baefc592e7388bcf540 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 24 Dec 2020 00:36:36 -0500 Subject: [PATCH] Fix BasicRepository Tests when not on UTC [common] --- .../Datastore/BasicRepositoryFixture.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/Datastore/BasicRepositoryFixture.cs b/src/NzbDrone.Core.Test/Datastore/BasicRepositoryFixture.cs index 4618026e5..9f0cf4b92 100644 --- a/src/NzbDrone.Core.Test/Datastore/BasicRepositoryFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/BasicRepositoryFixture.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using FizzWare.NBuilder; @@ -18,6 +18,12 @@ namespace NzbDrone.Core.Test.Datastore [SetUp] public void Setup() { + AssertionOptions.AssertEquivalencyUsing(options => + { + options.Using(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation.ToUniversalTime())).WhenTypeIs(); + return options; + }); + _basicList = Builder .CreateListOfSize(5) .All()