Skip to content

SettingsManagerTests: only wait for the settings manager's notification - #2566

Merged
ps2 merged 1 commit into
next-devfrom
next-dev-settings-test-own-notification
Oct 12, 2026
Merged

ps2 merged 1 commit into
next-devfrom
next-dev-settings-test-own-notification

Conversation

@ps2

@ps2 ps2 commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

testChangingMaxBasalUpdatesLoopData fulfilled its expectation on any .LoopDataUpdated notification. The test host is a running Loop app whose own LoopDataManager posts that notification too, so the expectation was fulfilled twice and XCTest aborted the host. That's the other crash keeping LoopKit/LoopWorkspace#523 red.

Now it observes only notifications from the SettingsManager under test. Passes on the iOS 27 simulator.

testChangingMaxBasalUpdatesLoopData fulfilled its expectation on any
LoopDataUpdated notification. The test host is a running Loop app, whose
own LoopDataManager posts that notification too, so the expectation was
fulfilled twice and XCTest aborted the host, failing the CI run.
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