decode items before they are decoded. fixes lots of y-array tests

This commit is contained in:
Kevin Jahns
2019-03-07 18:57:39 +01:00
parent 76b7d0b651
commit 0a5753c191
4 changed files with 34 additions and 20 deletions

View File

@@ -154,7 +154,7 @@ export class TestConnector {
}
const encoder = encoding.createEncoder()
receiver.mMux(() => {
console.log('receive (' + sender.userID + '->' + receiver.userID + '):\n', syncProtocol.stringifySyncMessage(decoding.createDecoder(m), receiver))
// console.log('receive (' + sender.userID + '->' + receiver.userID + '):\n', syncProtocol.stringifySyncMessage(decoding.createDecoder(m), receiver))
// do not publish data created when this function is executed (could be ss2 or update message)
syncProtocol.readSyncMessage(decoding.createDecoder(m), encoder, receiver)
})

View File

@@ -327,3 +327,7 @@ export const testRepeatGeneratingYarrayTests1000 = tc => {
export const testRepeatGeneratingYarrayTests1800 = tc => {
applyRandomTests(tc, arrayTransactions, 1800)
}
export const testRepeatGeneratingYarrayTests10000 = tc => {
applyRandomTests(tc, arrayTransactions, 10000)
}