Skip to content

Commit

Permalink
chore: Improve test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
stbrody committed Oct 21, 2024
1 parent ca33e88 commit d42f543
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 d42f543

Please sign in to comment.