File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ import SwiftXCTest
2020class 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( ) {
You can’t perform that action at this time.
0 commit comments