Skip to content

Commit

Permalink
Minor unit tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonabreul committed Jan 6, 2025
1 parent afa804e commit 4126836
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Engine/DataFeeds/UniverseSelectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 4126836

Please sign in to comment.