Fix flaky NotificationSettingsPresenterTest after loading distributors off the main thread

The distributors are now loaded on the IO dispatcher, which was a StandardTestDispatcher in the test, so the initial state could be read before they were loaded. Use an unconfined test dispatcher so that they are loaded deterministically.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benoit Marty
2026-10-14 14:46:15 +02:00
parent 6049f25a3e
commit faa7956b93
@@ -1177,7 +1177,7 @@ class NotificationSettingsPresenterTest {
stringProvider = FakeStringProvider(),
sessionCoroutineScope = backgroundScope,
featureFlagService = featureFlagService,
dispatchers = testCoroutineDispatchers(),
dispatchers = testCoroutineDispatchers(useUnconfinedTestDispatcher = true),
)
}
}