From ae201bd4100b7cff4b8ce511f0964a47468d300a Mon Sep 17 00:00:00 2001 From: Bug Magnet Date: Thu, 16 Nov 2023 12:08:54 +0100 Subject: [PATCH] Do not use global dispatch queue in tests --- ios/OperationsTests/OperationSmokeTests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/OperationsTests/OperationSmokeTests.swift b/ios/OperationsTests/OperationSmokeTests.swift index 7d8b17e7842c..6d66e6e63201 100644 --- a/ios/OperationsTests/OperationSmokeTests.swift +++ b/ios/OperationsTests/OperationSmokeTests.swift @@ -28,7 +28,8 @@ class OperationSmokeTests: XCTestCase { return [parent, child] } - DispatchQueue.global().async { + let dispatchQueue = DispatchQueue(label: "com.OperationSmokeTests.testBatch") + dispatchQueue.async { operationQueue.addOperations(operations, waitUntilFinished: true) expect.fulfill() }