amplify-swift icon indicating copy to clipboard operation
amplify-swift copied to clipboard

test(datastore): fix observe query integration test

Open 5d opened this issue 1 year ago • 0 comments

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 accordingly testThing_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.

5d avatar Jun 22 '23 01:06 5d