Skip to content

Commit

Permalink
Test refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Jan 1, 2021
1 parent 692a6ef commit 26bf1c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/NetDaemon.Daemon.Tests/SchedulerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,12 @@ await using (IScheduler scheduler = new Scheduler(mockTimeManager.Object))
nrOfRuns++;
await Task.Delay(1).ConfigureAwait(false);
});
await Task.Delay(600).ConfigureAwait(false);
await Task.Delay(200).ConfigureAwait(false);

// ASSERT
Assert.True(nrOfRuns == 0);
await Task.Delay(1000).ConfigureAwait(false);
Assert.True(nrOfRuns >= 1);
Assert.Equal(0, nrOfRuns);
await Task.Delay(1200).ConfigureAwait(false);
Assert.Equal(1, nrOfRuns);
}

try
Expand Down

0 comments on commit 26bf1c0

Please sign in to comment.