-
Notifications
You must be signed in to change notification settings - Fork 259
test(swift): add unit test cases for extension functions #4894
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
test(swift): add unit test cases for extension functions #4894
Conversation
94b54d7
to
bc5fa5a
Compare
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.
Changes look fine but the tests are failing in CI
packages/amplify_datastore/example/ios/unit_tests/GraphQLRequestExtensionTests.swift
Outdated
Show resolved
Hide resolved
packages/amplify_datastore/example/ios/unit_tests/PublisherExtensionTests.swift
Outdated
Show resolved
Hide resolved
subject.send(completion: .finished) | ||
} | ||
|
||
await fulfillment(of: [expectation1, expectation2, expectation3], timeout: 1) |
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 tests are failing in CI with the message
❌ /Users/runner/work/amplify-flutter/amplify-flutter/packages/amplify_datastore/example/ios/unit_tests/PublisherExtensionTests.swift:39:15: cannot find 'fulfillment' in scope
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.
Thanks for reviewing @Jordan-Nelson.
The API fulfillment
mentioned in the error log was introduced in Xcode 14.3.
As discussed with @Equartey, to utilize the datastore v2, flutter will need to update the CI GitHub runner to macOS-14
or macOS-14-arm64
, as the minimum supported version for datastore v2 has been updated to Swift 5.9.
4929406
to
3b8478f
Compare
Co-authored-by: Jordan Nelson <Jordanryannelson@gmail.com>
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.