From 63b273f5bf538496d045825526389f08182c33af Mon Sep 17 00:00:00 2001 From: Marcus Pousette Date: Thu, 14 Dec 2023 00:13:57 +0100 Subject: [PATCH] fix: test add delay --- packages/programs/data/document/src/__tests__/profile.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 () => {