This commit is contained in:
Tracy Rust 2024-04-02 13:24:57 -04:00
parent 820b982f23
commit cf1e7dce8a
2 changed files with 5 additions and 0 deletions

View File

@ -290,6 +290,8 @@ function pickTopPropertyRecord(property) {
//equal timestamps
//Use machine id as tie-breaker
//These essentially have to be different, otherwise we would only have one record
// (because records with the same machine Id are digested into the same property)
return predictableStringComparison(a.machineId, b.machineId);
}

View File

@ -663,3 +663,6 @@ describe("records anchored to each other", () => {
expect(readPropertyValue(prop)).toBe(42);
});
});
//Record anchored to itself? again "should never happen" but what do we do if it does?