diff --git a/Source/SammBot.Tests/Components/TaskQueueTests.cs b/Source/SammBot.Tests/Components/TaskQueueTests.cs index d6db2c8..1a45140 100644 --- a/Source/SammBot.Tests/Components/TaskQueueTests.cs +++ b/Source/SammBot.Tests/Components/TaskQueueTests.cs @@ -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); } } } \ No newline at end of file