-
Notifications
You must be signed in to change notification settings - Fork 78
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
Resolve deviceData
nil on BTDropInResult
#378
Conversation
if (PayPalDataCollectorClass != NSClassFromString(PayPalDataCollectorClassString)) { | ||
_deviceData = [PayPalDataCollectorClass collectPayPalDeviceData]; | ||
return self; | ||
} | ||
// Otherwise we should use `PPDataCollector` to collect device data | ||
_deviceData = [PPDataCollector collectPayPalDeviceData]; |
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.
This is wild. So the test was injecting a definition for PayPalDataCollectorClass
? So glad we're moving to Swift lol.
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.
Yeah, the test was setting a class, but the actual implementation never was - so tests were passing with the mock class being injected and the live code was returning nil for the past year 😢 Swift will certainly help us catch these cases sooner!
Tower was acting wild and closed/deleted this branch temporarily, so ignore that noise/chaos |
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.
🚢
Summary of changes
deviceData
was always nil onBTDropInResult
- this was due to how we were mocking the data collector but previously never actually calling the data collector to get device data as expectedChecklist
Authors