amplify-swift
amplify-swift copied to clipboard
test(datastore): fix observe query integration test
Issue #
Description
- stablize integration test cases of observe query
- unsubscribe to datastore publisher when test case is finished
- use new
fulfillment
async API
General Checklist
- [ ] Added new tests to cover change, if needed
- [ ] Build succeeds with all target using Swift Package Manager
- [X] All unit tests pass
- [X] All integration tests pass
- [ ] Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)
- [ ] Documentation update for the change if required
- [X] PR title conforms to conventional commit style
- [ ] New or updated tests include
Given When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
- [ ] If breaking change, documentation/changelog update with migration instructions
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.