Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Use Invocation in TestHub #2871

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

philipphofmann
Copy link
Member

Use thread-safe Invocation in TestHub, as running the tests locally sometimes lead to crashes in capturedTransactionsWithScope. Furthermore, remove DispatchGroup so we can remove plenty of calls to fixture.hub.group.wait().

#skip-changelog

Use thread safe Invocation in TestHub as running the tests locally
sometimes lead to crashes in capturedTransactionsWithScope.
Furthermore, remove DispatchGroup so we can remove plenty
of calls to fixture.hub.group.wait().
@@ -16,7 +16,7 @@ public class TestSentryNSTimerWrapper: SentryNSTimerWrapper {
var block: ((Timer) -> Void)?
}

public lazy var overrides = Overrides()
public var overrides = Overrides()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure why, but removing the lazy fixed a exc_bad_access crash.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, indeed.

@philipphofmann philipphofmann merged commit 2cf1b84 into main Apr 7, 2023
@philipphofmann philipphofmann deleted the test/use-invocations-in-test-hub branch April 7, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants