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

Fix test flake in features/session_stopping.feature:21 #1106

Merged
merged 2 commits into from
Jun 1, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

Fix an E2E test flake in features/session_stopping.feature:21 caused by an event's session handledCount being incremented by a subsequent call to notify().

Recent performance improvements have made this more likely to occur before the event uploader builds the JSON payload.

Changeset

A copy of the current session is now stored in BugsnagEvent so that subsequent calls to notify() will not alter previous events' sessions.

Removed some code duplication by consolidating handled and unhandled increments into -incrementEventCountUnhandled:

Testing

Reproduced by running the scenario locally.

Verified fix with a full E2E run - https://buildkite.com/bugsnag/bugsnag-cocoa/builds/2742

@nickdowell nickdowell requested review from kstenerud and kattrali June 1, 2021 14:56
@github-actions
Copy link

github-actions bot commented Jun 1, 2021

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 472 bytes from 1,126,560 to 1,127,032

Generated by 🚫 Danger

@nickdowell nickdowell merged commit 2396856 into next Jun 1, 2021
@nickdowell nickdowell deleted the nickdowell/fix-event-session branch June 1, 2021 15:53
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.

2 participants