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)
client.send(trx) { res, error in
XCTAssertNil(error)
if let res = res {
XCTAssertFalse(res.expired)
XCTAssert(res.blockNum > props.headBlockId.num)
} else {
XCTFail("No response")
if error.debugDescription.contains("CHAIN_MASTER_UPDATE_LIMIT") {} else {
XCTAssertNil(error)
if let res = res {
XCTAssertFalse(res.expired)
XCTAssert(res.blockNum > props.headBlockId.num)
} else {
XCTFail("No response")
}
}
test.fulfill()
}