File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ final class FormbricksSDKTests: XCTestCase {
104104 // Track a known event—the survey should be shown.
105105 Formbricks . track ( " click_demo_button " )
106106 let trackExpectation = expectation ( description: " Track event " )
107- DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.5 ) {
107+ DispatchQueue . main. asyncAfter ( deadline: . now( ) + 3.0 ) {
108108 trackExpectation. fulfill ( )
109109 }
110- wait ( for: [ trackExpectation] , timeout: 1 .0)
110+ wait ( for: [ trackExpectation] , timeout: 5 .0)
111111
112112 XCTAssertTrue ( Formbricks . surveyManager? . isShowingSurvey ?? false )
113113
@@ -124,10 +124,10 @@ final class FormbricksSDKTests: XCTestCase {
124124 // Track a valid event, but survey should not be shown because a response was already submitted.
125125 Formbricks . track ( " click_demo_button " )
126126 let secondTrackExpectation = expectation ( description: " Second track event " )
127- DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.5 ) {
127+ DispatchQueue . main. asyncAfter ( deadline: . now( ) + 3.0 ) {
128128 secondTrackExpectation. fulfill ( )
129129 }
130- wait ( for: [ secondTrackExpectation] , timeout: 1 .0)
130+ wait ( for: [ secondTrackExpectation] , timeout: 5 .0)
131131
132132 XCTAssertFalse ( Formbricks . surveyManager? . isShowingSurvey ?? false )
133133
You can’t perform that action at this time.
0 commit comments