Skip to content

Commit

Permalink
add fuse for cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Nov 17, 2020
1 parent a874cbe commit 6008c28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/TonClientSwiftTests/ProcessingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,13 @@ final class ProcessingTests: XCTestCase {
self.getGramsFromGiverSync(client, result.address)

var tokensReceived: Bool = false
var fuseCounter: Int = 0
while !tokensReceived {
fuseCounter += 1
if fuseCounter > 20 {
tokensReceived = true
XCTAssertTrue(false, "Tokens does not received form giver")
}
group.enter()
let paramsOfWaitForCollection: TSDKParamsOfWaitForCollection = .init(collection: "accounts",
filter: .object(["id": .object(
Expand Down

0 comments on commit 6008c28

Please sign in to comment.