fix method call
This commit is contained in:
parent
dce28b2dac
commit
a9ac86ba3d
@ -11,7 +11,7 @@ import XCTest
|
|||||||
|
|
||||||
class SocketAckManagerTest: XCTestCase {
|
class SocketAckManagerTest: XCTestCase {
|
||||||
var ackManager = SocketAckManager()
|
var ackManager = SocketAckManager()
|
||||||
|
|
||||||
func testAddAcks() {
|
func testAddAcks() {
|
||||||
let callbackExpection = self.expectationWithDescription("callbackExpection")
|
let callbackExpection = self.expectationWithDescription("callbackExpection")
|
||||||
let itemsArray = ["Hi", "ho"]
|
let itemsArray = ["Hi", "ho"]
|
||||||
@ -19,8 +19,8 @@ class SocketAckManagerTest: XCTestCase {
|
|||||||
callbackExpection.fulfill()
|
callbackExpection.fulfill()
|
||||||
}
|
}
|
||||||
ackManager.addAck(1, callback: callback)
|
ackManager.addAck(1, callback: callback)
|
||||||
ackManager.executeAck(1, items: itemsArray)
|
ackManager.executeAck(1, items: itemsArray, onQueue: dispatch_get_main_queue())
|
||||||
waitForExpectationsWithTimeout(3.0, handler: nil)
|
waitForExpectationsWithTimeout(3.0, handler: nil)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user