Skip to content

Commit

Permalink
Do not use global dispatch queue in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Nov 16, 2023
1 parent 04c6609 commit f03eb46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/OperationsTests/OperationSmokeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit f03eb46

Please sign in to comment.