Skip to content

Commit d8c85dc

Browse files
committed
Cleanup after tests correctly
1 parent 67380a8 commit d8c85dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WooCommerce/WooCommerceTests/ViewRelated/CardPresentPayments/CardPresentPaymentsOnboardingUseCaseTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ class CardPresentPaymentsOnboardingUseCaseTests: XCTestCase {
3131
}
3232
}
3333
stores.sessionManager.setStoreId(sampleSiteID)
34-
ServiceLocator.setSelectedSiteSettings(.init(stores: stores, storageManager: storageManager))
34+
ServiceLocator.setSelectedSiteSettings(SelectedSiteSettings(stores: stores, storageManager: storageManager))
3535
}
3636

3737
override func tearDownWithError() throws {
38+
ServiceLocator.setSelectedSiteSettings(SelectedSiteSettings())
39+
storageManager.reset()
3840
storageManager = nil
3941
stores = nil
4042
try super.tearDownWithError()

0 commit comments

Comments
 (0)