We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b261d7e commit 53b24f5Copy full SHA for 53b24f5
Tests/FormbricksSDKTests/FormbricksSDKTests.swift
@@ -151,13 +151,12 @@ final class FormbricksSDKTests: XCTestCase {
151
Formbricks.logout()
152
Formbricks.surveyManager?.filterSurveys()
153
154
- Formbricks.track("click_demo_button")
155
let thirdTrackExpectation = expectation(description: "Third track event")
156
- DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
+ Formbricks.track("click_demo_button", completion: {
157
thirdTrackExpectation.fulfill()
158
- }
159
- wait(for: [thirdTrackExpectation], timeout: 1.0)
+ })
160
+ wait(for: [thirdTrackExpectation], timeout: 2.0)
161
XCTAssertTrue(Formbricks.surveyManager?.isShowingSurvey ?? false)
162
163
// Test the cleanup
0 commit comments