-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix unit tests and Array<Never> related bugs #17
Conversation
This reverts commit a878b5a.
This reverts commit 33cf264.
this is a try to fix the chaos `Never` introduced inside this library, there is a high chance change below is the final source. swiftlang/swift#64899 At least unit test passes after it removed.
There are also some resulting issues fixed in this commit too.
Issue is: now fileUrl generate random file urls for the same request, cause the digest of request body is random. There is a breaking change in swift Foundation's JSONEncoder, sortedKeys needed now. For detail, check here: https://developer.apple.com/forums/thread/735895
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.
We'll want to make sure to test this properly, but the code looks good to me 👍 Thanks for working on this 🙏
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.
Code looks good, but since the issue was happening on iOS 15 and 16, I think we should make sure that the crash has disappeared from those versions before we merge this into master.
issues:
crashing on anchor-mobile-ios
greymass/anchor#1365