Skip to content
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

History Sync tests #547

Closed
wants to merge 1 commit into from
Closed

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Nov 26, 2024

Adds the ability to test history sync by having multiple installations with the same inboxId running at the same time.

In React Native we keep a map of clients by inboxId in the bridge so that you can easily fetch a client and call it's respective functions on it. This makes it so you can only have one client at a time. Unfortunately when it comes to installations we want a client per installation the two options are to

  1. change our client mapping to be by installationId
  2. add very specific tests for history syncing that give access to these multiple installations

My gut is that doing this based on inboxId is going to bite us in the future and that it should really be mapped by installationId. However thats going to be a massive change.

@nplasterer nplasterer self-assigned this Nov 26, 2024
@nplasterer
Copy link
Contributor Author

Closing in favor of option 1

@nplasterer nplasterer closed this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant