Skip to content

Commit

Permalink
fix(test): fix LSSyncMessage test with the new streamid
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricenclos committed Jul 5, 2019
1 parent ea77f53 commit 120d9ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/LSSyncMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LogootSOperation } from 'mute-structs'
import { Interval, ReplySyncEvent, StateVector } from '../src/core'
import { LSSyncMessage } from '../src/crdtImpl/LogootSplit'
import { IMessageIn, IMessageOut } from '../src/misc'
import { Streams } from '../src/Streams'
import { Streams, StreamsSubtype } from '../src/Streams'
import { generateQuerySyncMsg, generateSequentialRichLogootSOps, generateVector } from './LSHelpers'

function generateReplySync(): ReplySyncEvent<LogootSOperation> {
Expand Down Expand Up @@ -92,7 +92,7 @@ test('replySync-correct-recipient', (context) => {

setTimeout(() => {
msgIn.next({
streamId: Streams.DOCUMENT_CONTENT,
streamId: { type: Streams.DOCUMENT_CONTENT, subtype: StreamsSubtype.DOCUMENT_QUERY },
senderId: expected,
content: generateQuerySyncMsg(generateVector()),
})
Expand Down Expand Up @@ -128,7 +128,7 @@ test('replySync-correct-send-and-delivery', (context) => {

setTimeout(() => {
msgIn.next({
streamId: Streams.DOCUMENT_CONTENT,
streamId: { type: Streams.DOCUMENT_CONTENT, subtype: StreamsSubtype.DOCUMENT_QUERY },
senderId: 0,
content: generateQuerySyncMsg(generateVector()),
})
Expand Down

0 comments on commit 120d9ee

Please sign in to comment.