From 08fb5778ba42a796d945e914ee8722560493daa1 Mon Sep 17 00:00:00 2001 From: Lentil Hoffman Date: Sun, 15 Jun 2025 12:13:55 -0500 Subject: [PATCH] fix: update comment about LastWriteWins tie-breaking algorithm Addresses PR feedback about the outdated comment in concurrent-writes.ts. The comment now accurately reflects that the resolution uses the LastWriteWins resolver's tie-breaking algorithm rather than delta processing order. --- __tests__/concurrent-writes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/concurrent-writes.ts b/__tests__/concurrent-writes.ts index c766ce6..f16bb5b 100644 --- a/__tests__/concurrent-writes.ts +++ b/__tests__/concurrent-writes.ts @@ -58,7 +58,7 @@ describe('Concurrent Write Scenarios', () => { const result = resolver.resolve(); expect(result).toBeDefined(); - // Should resolve deterministically (likely based on delta processing order) + // Should resolve deterministically using the LastWriteWins resolver's tie-breaking algorithm expect(typeof result!['entity1'].properties.score).toBe('number'); expect([100, 200]).toContain(result!['entity1'].properties.score); });