Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SSchulze1989 committed Jul 14, 2024
1 parent 605a90b commit 40fa418
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,10 @@ private IPostprocessComposer<ResultRowCalculationData> TestRowBuilder()
.Without(x => x.RacePoints)
.Without(x => x.BonusPoints)
.Without(x => x.PenaltyPoints)
.Without(x => x.AddPenalties);
.Without(x => x.AddPenalties)
.With(x => x.AvgLapTime, fixture.Create<TimeSpan>().Add(TimeSpan.FromMilliseconds(1)))
.With(x => x.FastestLapTime, fixture.Create<TimeSpan>().Add(TimeSpan.FromMilliseconds(1)))
.With(x => x.QualifyingTime, fixture.Create<TimeSpan>().Add(TimeSpan.FromMilliseconds(1)));
}

private IEnumerable<ResultRowCalculationData> GetTestRows()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ private SessionCalculationConfiguration GetCalculationConfiguration(long leagueI
private IPostprocessComposer<ResultRowCalculationData> TestRowBuilder()
{
return fixture.Build<ResultRowCalculationData>()
.Without(x => x.AddPenalties);
.Without(x => x.AddPenalties)
.With(x => x.AvgLapTime, fixture.Create<TimeSpan>().Add(TimeSpan.FromMilliseconds(1)))
.With(x => x.FastestLapTime, fixture.Create<TimeSpan>().Add(TimeSpan.FromMilliseconds(1)))
.With(x => x.QualifyingTime, fixture.Create<TimeSpan>().Add(TimeSpan.FromMilliseconds(1)));
}

private IPostprocessComposer<ResultRowCalculationData> TeamTestRowBuilder(IEnumerable<long?> teamIds)
Expand Down

0 comments on commit 40fa418

Please sign in to comment.