Skip to content

Commit

Permalink
fix: tests only run in release mode referenced missing property
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed Sep 25, 2023
1 parent 06a80d9 commit 7e509f2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@ public void WaiterRemovedWhenCollectedWithoutDispose()
var timer2Counter = 0;

var timeProvider = new FakeTimeProvider();
var waitersCountStart = timeProvider.ScheduledCallbacks;
var waitersCountStart = timeProvider.ActiveTimers;

var timer1 = timeProvider.CreateTimer(_ => timer1Counter++, null, TimeSpan.FromMilliseconds(1), TimeSpan.FromMilliseconds(1));
var timer2 = timeProvider.CreateTimer(_ => timer2Counter++, null, TimeSpan.FromMilliseconds(1), TimeSpan.FromMilliseconds(1));

var waitersCountDuring = timeProvider.ScheduledCallbacks;
var waitersCountDuring = timeProvider.ActiveTimers;

timeProvider.Advance(TimeSpan.FromMilliseconds(1));

Expand All @@ -257,7 +257,7 @@ public void WaiterRemovedWhenCollectedWithoutDispose()

timeProvider.Advance(TimeSpan.FromMilliseconds(1));

var waitersCountAfter = timeProvider.ScheduledCallbacks;
var waitersCountAfter = timeProvider.ActiveTimers;

Assert.Equal(0, waitersCountStart);
Assert.Equal(2, waitersCountDuring);
Expand Down

0 comments on commit 7e509f2

Please sign in to comment.