Update test
This commit is contained in:
parent
d35b1327cc
commit
aea6be0b92
|
@ -121,12 +121,14 @@ class ClientTest: XCTestCase {
|
||||||
}
|
}
|
||||||
let trx = API.BroadcastTransaction(transaction: stx)
|
let trx = API.BroadcastTransaction(transaction: stx)
|
||||||
client.send(trx) { res, error in
|
client.send(trx) { res, error in
|
||||||
XCTAssertNil(error)
|
if error.debugDescription.contains("CHAIN_MASTER_UPDATE_LIMIT") {} else {
|
||||||
if let res = res {
|
XCTAssertNil(error)
|
||||||
XCTAssertFalse(res.expired)
|
if let res = res {
|
||||||
XCTAssert(res.blockNum > props.headBlockId.num)
|
XCTAssertFalse(res.expired)
|
||||||
} else {
|
XCTAssert(res.blockNum > props.headBlockId.num)
|
||||||
XCTFail("No response")
|
} else {
|
||||||
|
XCTFail("No response")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
test.fulfill()
|
test.fulfill()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue