-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
feature: mobile paymentsRelated to mobile payments / card present payments / Woo Payments.Related to mobile payments / card present payments / Woo Payments.source: peacock-backlogIssue source, useful for migrating to LinearIssue source, useful for migrating to Linear
Description
CardReaderConnectionControllerTests are all marked as Skipped, because they fail on CI and work locally. We should investigate and fix this separately.
Also consider this PR suggestion for the mock:
In these mocks, since we're doing multiple `if mode =` checks per method but just covering a limited number of cases, would be worth to use a switch statement and an `assertionFailure()` if falls into the default case? I'm thinking it could help with tests if we land on a state that we shouldn't. Example:
switch mode {
case .continueSearchingAfterConnectionFailure:
retrySearch()
case .cancelSearchingAfterConnectionFailure:
cancelSearch()
default:
assertionFailure("Not implemented")
}
Originally posted by @iamgabrielma in #10526 (comment)
Metadata
Metadata
Assignees
Labels
feature: mobile paymentsRelated to mobile payments / card present payments / Woo Payments.Related to mobile payments / card present payments / Woo Payments.source: peacock-backlogIssue source, useful for migrating to LinearIssue source, useful for migrating to Linear
Type
Projects
Status
Done