Skip to content

Commit

Permalink
get test passing everytime
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 26, 2024
1 parent c2b3228 commit d555cdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/src/tests/conversationTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ test('can stream consent', async () => {
await alix2.conversations.syncAllConversations()

const alix2Group = await alix2.conversations.findConversation(alixGroup.id)
await delayToPropogate()

const consent = []
await alix.preferences.streamConsent(async (entry: ConsentRecord) => {
Expand All @@ -685,14 +686,13 @@ test('can stream consent', async () => {
const dm = await alix2.conversations.newConversation(bo.address)
await dm!.updateConsent('denied')

await delayToPropogate(3000)
await alix.conversations.syncAllConversations()
await delayToPropogate(2000)
await alix2.conversations.syncAllConversations()
await delayToPropogate(2000)

assert(
consent.length === 3,
`Expected 3 consent records, got ${consent.length}`
consent.length === 4,
`Expected 4 consent records, got ${consent.length}`
)
const updatedConsentState = await alixGroup.consentState()
assert(
Expand Down

0 comments on commit d555cdb

Please sign in to comment.