automerge / automerge-repo-swift

Extends the Automerge-swift library, providing support for working with multiple Automerge documents at once, with pluggable network and storage providers.
https://swiftpackageindex.com/automerge/automerge-repo-swift/documentation/automergerepo
MIT License
23 stars 4 forks source link

resolve flaky test with documentIds #36

Closed heckj closed 6 months ago

heckj commented 6 months ago

currently await repo.documentIds() can return partially resolved Ids, somewhat intentionally - but this can lead to flaky test results when requesting documentIds immediately after adding (some may still be in the process of storing) - so that API may need to be rethought, or the implementation resolved so that it's fully deterministic.

heckj commented 6 months ago

resolved with #54, which made the doc handle resolver fully synchronous, where previously it was floating in an inconsistent state