Skip to content

Commit

Permalink
fix(ci): make sure to wait a bit before starting the sub
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinse12 committed Dec 4, 2024
1 parent a146cf3 commit b3e1755
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci-bin/run-daemon-before-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const startPlebbitDaemon = async (args: string[]): Promise<ChildProcess> => {

const sub = await plebbit.createSubplebbit({});
if (typeof sub.address !== "string") throw Error("Failed to create a sub via RPC");

await new Promise((resolve) => setTimeout(resolve, 5000)); // wait until the ipfs node restarts
await sub.start();
await new Promise((resolve) => sub.once("update", resolve));

Expand Down

0 comments on commit b3e1755

Please sign in to comment.