mirror of
https://github.com/yjs/yjs.git
synced 2026-02-24 04:01:14 +01:00
fixed another splicing issue with skips
This commit is contained in:
@@ -112,7 +112,7 @@ export const addStruct = (store, struct) => {
|
||||
const diffStart = struct.id.clock - skip.id.clock
|
||||
const diffEnd = skip.id.clock + skip.length - struct.id.clock - struct.length
|
||||
if (diffStart > 0) {
|
||||
structs.splice(index++, 0, new Skip(createID(struct.id.client, struct.id.clock), diffStart))
|
||||
structs.splice(index++, 0, new Skip(createID(struct.id.client, skip.id.clock), diffStart))
|
||||
}
|
||||
if (diffEnd > 0) {
|
||||
structs.splice(index + 1, 0, new Skip(createID(struct.id.client, struct.id.clock + struct.length), diffEnd))
|
||||
|
||||
@@ -604,7 +604,7 @@ const arrayTransactions = [
|
||||
* @param {t.TestCase} tc
|
||||
*/
|
||||
export const testRepeatGeneratingYarrayTests6 = tc => {
|
||||
applyRandomTests(tc, arrayTransactions, 8)
|
||||
applyRandomTests(tc, arrayTransactions, 6*3)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user