Fix flakey AuthenticationService test. (#4270)

The AppSettings overrides were being propagated.
This commit is contained in:
Doug
2025-06-30 16:31:01 +01:00
committed by GitHub
parent e882b9e7b8
commit 13e7bbc678
2 changed files with 8 additions and 6 deletions

View File

@@ -22,7 +22,8 @@ class ServerConfirmationScreenViewModelTests: XCTestCase {
override func setUp() {
AppSettings.resetAllSettings()
appSettings = AppSettings()
ServiceLocator.shared.register(appSettings: appSettings)
// These app settings are kept local to the tests on purpose as if they are registered in the
// ServiceLocator, the providers override that we apply will break other tests in the suite.
}
override func tearDown() {