Skip to content

Fix Hiro Challenges tests fixture causing false positive test results#36

Open
yinnie wants to merge 1 commit into
mainfrom
challenges_tests
Open

Fix Hiro Challenges tests fixture causing false positive test results#36
yinnie wants to merge 1 commit into
mainfrom
challenges_tests

Conversation

@yinnie
Copy link
Copy Markdown

@yinnie yinnie commented May 25, 2026

Two integration tests were failing in Hiro Challenges.
Screenshot 2026-05-25 at 13 27 09

ChallengesController subscribes to AccountSwitcher.AccountSwitched in its constructor but implements IDisposable to unsubscribe. Their TearDown deleted the Nakama accounts from the server but never disposed the controller, leaving the subscriptions active.

Tested against local server with Unity in edit mode. Test results xml shows all tests passing.
Screenshot 2026-05-25 at 13 26 36

… causes leaked subscription and test failure.
@yinnie yinnie requested a review from andresfelipemendez May 25, 2026 17:29
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.

1 participant