Update test

This commit is contained in:
Vladimir Babin 2021-03-30 20:28:50 +05:00
parent d35b1327cc
commit aea6be0b92
1 changed files with 8 additions and 6 deletions

View File

@ -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()
} }