diff --git a/Tests/Engine/DataFeeds/UniverseSelectionTests.cs b/Tests/Engine/DataFeeds/UniverseSelectionTests.cs index 0c5448f9ea43..5f2e47d43625 100644 --- a/Tests/Engine/DataFeeds/UniverseSelectionTests.cs +++ b/Tests/Engine/DataFeeds/UniverseSelectionTests.cs @@ -38,8 +38,8 @@ public void CreatedEquityIsNotAddedToSymbolCache() { SymbolCache.Clear(); var algorithm = new AlgorithmStub(new MockDataFeed()); - algorithm.SetEndDate(Time.EndOfTime); - algorithm.SetStartDate(DateTime.UtcNow.Subtract(TimeSpan.FromDays(10))); + algorithm.SetEndDate(new DateTime(2024, 12, 13)); + algorithm.SetStartDate(algorithm.EndDate.Subtract(TimeSpan.FromDays(10))); algorithm.AddUniverse(CoarseSelectionFunction, FineSelectionFunction); // OnEndOfTimeStep will add all pending universe additions algorithm.OnEndOfTimeStep(); @@ -125,8 +125,8 @@ public void RemovalFromUniverseAndDataFeedMakesSecurityNotTradable() public void CoarseFundamentalHasFundamentalDataFalseExcludedInFineUniverseSelection() { var algorithm = new AlgorithmStub(new MockDataFeed()); - algorithm.SetEndDate(Time.EndOfTime); - algorithm.SetStartDate(DateTime.UtcNow.Subtract(TimeSpan.FromDays(10))); + algorithm.SetEndDate(new DateTime(2024, 12, 13)); + algorithm.SetStartDate(algorithm.EndDate.Subtract(TimeSpan.FromDays(10))); algorithm.AddUniverse( coarse => coarse.Select(c => c.Symbol),