Skip to content

Commit

Permalink
increase test iterations + version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmh committed Jan 17, 2025
1 parent 88ea3e8 commit 10189ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Src/Coravel/Coravel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>.net6.0</TargetFramework>
<PackageId>Coravel</PackageId>
<Version>6.0.1</Version>
<Version>6.0.2</Version>
<Authors>James Hickey</Authors>
<Company>-</Company>
<Title>Coravel</Title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ public async Task TestRunsAtStartAndWhenDue(int atHour, int atMinute, int day, i
}

/// <summary>
/// This test runs for a long time - like 40 seconds on a fast codespaces VM. But, that's how many iterations of running this test takes to
/// catch a really rare race condition. This was causing the `RunOnceAtStart` method to have an bug where intermittently those tasks weren't running
/// This test runs for a long time. But, that's how many iterations of running this test takes to
/// catch a rare race condition. This was causing the `RunOnceAtStart` method to have an bug where intermittently those tasks weren't running
/// when the application started up.
/// </summary>
[Fact]
public async Task TestConcurrentThreadsDoesNotSkipForcedRun()
{
for(int i = 0; i < 10000; i++)
for(int i = 0; i < 20000; i++)
{
var scheduler = new Scheduler(new InMemoryMutex(), new ServiceScopeFactoryStub(), new DispatcherStub());
var taskRan = false;
Expand Down

0 comments on commit 10189ba

Please sign in to comment.