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
20
20
class TestNSOperationQueue : XCTestCase {
21
21
static var allTests : [ ( String , ( TestNSOperationQueue ) -> ( ) throws -> Void ) ] {
22
22
return [
23
- /* uncomment below lines once Dispatch is enabled in Foundation */
24
- // ("test_OperationPriorities", test_OperationPriorities),
23
+ ( " test_OperationPriorities " , test_OperationPriorities) ,
25
24
( " test_OperationCount " , test_OperationCount)
26
25
]
27
26
}
@@ -31,9 +30,8 @@ class TestNSOperationQueue : XCTestCase {
31
30
let op1 = BlockOperation ( block: { sleep ( 2 ) } )
32
31
queue. addOperation ( op1)
33
32
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 )
37
35
}
38
36
39
37
func test_OperationPriorities( ) {
You can’t perform that action at this time.
0 commit comments