-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor FXIOS-14344 [Swift 6 migration] Fixing DependencyHelperMock unit tests warning #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: copilot_combined_20260121_qodo_grep_cursor_copilot_1_base_refactor_fxios-14344_swift_6_migration_fixing_dependencyhelpermock_unit_tests_warning_pr226
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,14 +9,14 @@ import Common | |||||
|
|
||||||
| @MainActor | ||||||
| class DownloadProgressManagerTests: XCTestCase { | ||||||
| override func setUp() { | ||||||
| super.setUp() | ||||||
| override func setUp() async throws { | ||||||
| try await super.setUp() | ||||||
| DependencyHelperMock().bootstrapDependencies() | ||||||
|
||||||
| DependencyHelperMock().bootstrapDependencies() | |
| await DependencyHelperMock().bootstrapDependencies() |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,14 +11,14 @@ import Common | |||||
| final class PrivateHomepageViewControllerTests: XCTestCase { | ||||||
| let windowUUID: WindowUUID = .XCTestDefaultUUID | ||||||
|
|
||||||
| override func setUp() { | ||||||
| super.setUp() | ||||||
| override func setUp() async throws { | ||||||
| try await super.setUp() | ||||||
| DependencyHelperMock().bootstrapDependencies() | ||||||
|
||||||
| DependencyHelperMock().bootstrapDependencies() | |
| await DependencyHelperMock().bootstrapDependencies() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The call to DependencyHelperMock().bootstrapDependencies() is missing the await keyword. Since the bootstrapDependencies method is marked as @mainactor in DependencyHelperMock.swift and this method is already async, this call should be awaited to properly handle the async context.