File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,11 @@ final class FirebaseSwiftUIExampleUITests: XCTestCase {
88
88
let maxWaitTime : TimeInterval = 30
89
89
90
90
Timer . scheduledTimer ( withTimeInterval: checkInterval, repeats: true ) { timer in
91
- if signedInText. exists {
92
- expectation. fulfill ( )
93
- timer. invalidate ( )
91
+ DispatchQueue . main. async {
92
+ if signedInText. exists {
93
+ expectation. fulfill ( )
94
+ timer. invalidate ( )
95
+ }
94
96
}
95
97
}
96
98
@@ -195,9 +197,11 @@ final class FirebaseSwiftUIExampleUITests: XCTestCase {
195
197
let maxWaitTime : TimeInterval = 30
196
198
197
199
Timer . scheduledTimer ( withTimeInterval: checkInterval, repeats: true ) { timer in
198
- if signedInText. exists {
199
- expectation. fulfill ( )
200
- timer. invalidate ( )
200
+ DispatchQueue . main. async {
201
+ if signedInText. exists {
202
+ expectation. fulfill ( )
203
+ timer. invalidate ( )
204
+ }
201
205
}
202
206
}
203
207
You can’t perform that action at this time.
0 commit comments