Skip to content

Conversation

@lukaskubanek
Copy link
Contributor

@lukaskubanek lukaskubanek commented Jan 2, 2026

This PR completes the test matrix for conflict scenarios between server and client versions by adding the last missing test case:

  • serverRecordEditedAfterClientAndProcessedBeforeClient()
  • serverRecordEditedAfterClientAndProcessedAfterClient() 🆕
  • serverRecordEditedBeforeClientAndProcessedBeforeClient()
  • serverRecordEditedBeforeClientAndProcessedAfterClient()

It also includes a few cosmetic changes to improve readability and naming consistency.

The main motivation for this PR is to provide a concrete reference for a follow-up issue about a flaw in the current “last edit wins” conflict resolution strategy. See #354.

- Drop "merge_" prefix from first test name
- Assert on privateCloudDatabase instead of container to remove unneeded shared database from snapshots
- Use explicit time assignment instead of relative time increments throughout all relevant tests for consistency
Makes timing sequences explicit in test names and adds missing test case for server record edited *after* client and processed *after* client.
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