Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
chiliec committed Mar 30, 2021
1 parent d35b132 commit aea6be0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Tests/IntegrationTests/API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit aea6be0

Please sign in to comment.