decode items before they are decoded. fixes lots of y-array tests
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
@@ -327,3 +327,7 @@ export const testRepeatGeneratingYarrayTests1000 = tc => {
|
||||
export const testRepeatGeneratingYarrayTests1800 = tc => {
|
||||
applyRandomTests(tc, arrayTransactions, 1800)
|
||||
}
|
||||
|
||||
export const testRepeatGeneratingYarrayTests10000 = tc => {
|
||||
applyRandomTests(tc, arrayTransactions, 10000)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user