Skip to content

Commit

Permalink
[Tests -> Components] Fix queue test.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogFeelings committed Feb 8, 2024
1 parent 2e95276 commit 68263d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/SammBot.Tests/Components/TaskQueueTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public async Task ConcurrencyTest()

Task finishedTask = await Task.WhenAny(firstEnqueue, secondEnqueue, thirdEnqueue);

Assert.IsTrue(finishedTask == firstEnqueue, $"Second task finished before the first at attempt {i}.");
Assert.IsTrue(finishedTask == firstEnqueue, $"Secondary task finished before the first at attempt {i}.");

Task.WaitAll(firstEnqueue, secondEnqueue, thirdEnqueue);
}
}
}

0 comments on commit 68263d2

Please sign in to comment.