diff --git a/src/xunit.execution/Sdk/Frameworks/Runners/XunitTestAssemblyRunner.cs b/src/xunit.execution/Sdk/Frameworks/Runners/XunitTestAssemblyRunner.cs index 3ff8f1000..25dcb8421 100644 --- a/src/xunit.execution/Sdk/Frameworks/Runners/XunitTestAssemblyRunner.cs +++ b/src/xunit.execution/Sdk/Frameworks/Runners/XunitTestAssemblyRunner.cs @@ -265,14 +265,13 @@ protected override async Task RunTestCollectionsAsync(IMessageBus me } /// - protected override Task RunTestCollectionAsync(IMessageBus messageBus, ITestCollection testCollection, IEnumerable testCases, CancellationTokenSource cancellationTokenSource) + protected override async Task RunTestCollectionAsync(IMessageBus messageBus, ITestCollection testCollection, IEnumerable testCases, CancellationTokenSource cancellationTokenSource) { - parallelSemaphore?.Wait(); try { - return new XunitTestCollectionRunner(testCollection, testCases, DiagnosticMessageSink, messageBus, TestCaseOrderer, new ExceptionAggregator(Aggregator), cancellationTokenSource).RunAsync(); + return await new XunitTestCollectionRunner(testCollection, testCases, DiagnosticMessageSink, messageBus, TestCaseOrderer, new ExceptionAggregator(Aggregator), cancellationTokenSource).RunAsync(); } finally {