diff --git a/packages/programs/data/document/src/__tests__/profile.test.ts b/packages/programs/data/document/src/__tests__/profile.test.ts index 49ddb27b1..abb99fd91 100644 --- a/packages/programs/data/document/src/__tests__/profile.test.ts +++ b/packages/programs/data/document/src/__tests__/profile.test.ts @@ -3,7 +3,7 @@ import { Documents } from "../index.js"; import { Program } from "@peerbit/program"; import { v4 as uuid } from "uuid"; import { randomBytes } from "@peerbit/crypto"; -import { waitForResolved } from "@peerbit/time"; +import { delay, waitForResolved } from "@peerbit/time"; import { TestSession } from "@peerbit/test-utils"; /** @@ -67,6 +67,7 @@ describe("profile", () => { } await stores[0].waitFor(session.peers[1].peerId); await stores[0].waitFor(session.peers[2].peerId); + await delay(5000); }); afterEach(async () => {