We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581ef4b commit e18d392Copy full SHA for e18d392
Samples/iOS-Swift/iOS-Swift/TransactionsViewController.swift
@@ -25,6 +25,11 @@ class TransactionsViewController: UIViewController {
25
}
26
27
private func periodicallyDoWork() {
28
+ // This creates spans on background queues when doing things like reading files
29
+ // The background spans can interfere with UI tests that assert certain active spans
30
+ // (using SentryScope.span) because if this span is running the active span does not
31
+ // get overwritten (bindToScope = 0)
32
+ guard ProcessInfo.processInfo.environment["--io.sentry.ui-test.test-name"] == nil else { return }
33
34
self.timer = Timer.scheduledTimer(withTimeInterval: 5.0, repeats: true) { _ in
35
self.dispatchQueue.async {
0 commit comments