File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ class TestOperationQueue : XCTestCase {
120
120
for i in 0 ..< 5 {
121
121
let operation = BlockOperation {
122
122
valueOperations. append ( i)
123
- sleep ( 2 )
123
+ Thread . sleep ( forTimeInterval : 2 )
124
124
}
125
125
operations. append ( operation)
126
126
}
@@ -139,14 +139,14 @@ class TestOperationQueue : XCTestCase {
139
139
140
140
let operation1 = BlockOperation {
141
141
valueOperations. append ( 0 )
142
- sleep ( 2 )
142
+ Thread . sleep ( forTimeInterval : 2 )
143
143
}
144
144
operation1. queuePriority = . high
145
145
operations. append ( operation1)
146
146
147
147
let operation2 = BlockOperation {
148
148
valueOperations. append ( 1 )
149
- sleep ( 2 )
149
+ Thread . sleep ( forTimeInterval : 2 )
150
150
}
151
151
operation2. queuePriority = . high
152
152
operations. append ( operation2)
You can’t perform that action at this time.
0 commit comments