Skip to content

Commit

Permalink
chore: Improve test stability (#3289)
Browse files Browse the repository at this point in the history
  • Loading branch information
stbrody authored Oct 21, 2024
1 parent ca33e88 commit dfeb338
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ describe.each(envs)(
const count = await countResults(ceramic2, { model: model.id, first: 100 })
return count > 1
})
await TestUtils.waitForConditionOrTimeout(async () => {
const doc1OnNode2 = await ceramic2.loadStream(doc1.id)
return doc1OnNode2.content.myData == CONTENT1.myData
})

await expect(TestUtils.isPinned(ceramic2.admin, doc1.id)).toBeTruthy()
await expect(TestUtils.isPinned(ceramic2.admin, doc2.id)).toBeTruthy()
Expand Down

0 comments on commit dfeb338

Please sign in to comment.