Skip to content

Commit

Permalink
test(signup): fix flaky test (#1582)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 authored Jun 20, 2024
1 parent cbae20a commit 69663ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/tests/unit/signup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ describe("signup", () => {
});

it("should allow to signup and return the user data", async () => {
const startBlock = await signer.provider?.getBlockNumber();

const signUpData = await signup({
maciAddress: maciAddresses.maciAddress,
maciPubKey: user.pubKey.serialize(),
Expand All @@ -38,7 +40,7 @@ describe("signup", () => {

const registeredUserData = await isRegisteredUser({
maciAddress: maciAddresses.maciAddress,
startBlock: await signer.provider?.getBlockNumber(),
startBlock,
maciPubKey: user.pubKey.serialize(),
signer,
});
Expand Down

0 comments on commit 69663ea

Please sign in to comment.