Skip to content

Commit f8c3fe6

Browse files
dgrove-ossparkera
authored andcommitted
enable Dispatch tests in TestNSOperationQueue (#559)
1 parent 0bd06ce commit f8c3fe6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

TestFoundation/TestNSOperationQueue.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import SwiftXCTest
2020
class TestNSOperationQueue : XCTestCase {
2121
static var allTests: [(String, (TestNSOperationQueue) -> () throws -> Void)] {
2222
return [
23-
/* uncomment below lines once Dispatch is enabled in Foundation */
24-
// ("test_OperationPriorities", test_OperationPriorities),
23+
("test_OperationPriorities", test_OperationPriorities),
2524
("test_OperationCount", test_OperationCount)
2625
]
2726
}
@@ -31,9 +30,8 @@ class TestNSOperationQueue : XCTestCase {
3130
let op1 = BlockOperation(block: { sleep(2) })
3231
queue.addOperation(op1)
3332
XCTAssertTrue(queue.operationCount == 1)
34-
/* uncomment below lines once Dispatch is enabled in Foundation */
35-
//queue.waitUntilAllOperationsAreFinished()
36-
//XCTAssertTrue(queue.operationCount == 0)
33+
queue.waitUntilAllOperationsAreFinished()
34+
XCTAssertTrue(queue.operationCount == 0)
3735
}
3836

3937
func test_OperationPriorities() {

0 commit comments

Comments
 (0)