Skip to content

Commit

Permalink
change fuse
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Nov 17, 2020
1 parent 6008c28 commit 870028f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/TonClientSwiftTests/ProcessingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ final class ProcessingTests: XCTestCase {
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 All @@ -152,6 +147,11 @@ final class ProcessingTests: XCTestCase {
}
}
group.wait()
fuseCounter += 1
if fuseCounter > 20 && !tokensReceived {
tokensReceived = true
XCTAssertTrue(false, "Tokens does not received form giver")
}
}

let payloadProcessMessage: TSDKParamsOfProcessMessage = .init(message_encode_params: payloadEncodeMessage, send_events: true)
Expand Down

0 comments on commit 870028f

Please sign in to comment.