Skip to content

Commit

Permalink
fix(tests): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Jul 10, 2023
1 parent 15b8743 commit 905b6c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/actions/test/unit/ec2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ describe("VMs", () => {
await sleep(500)
// Write the file to disk.
fs.writeFileSync(lastZkeyLocalFilePath, await getResponse.buffer())
await sleep(1000)
await sleep(3000)
// 9. progress to next step
await progressToNextCircuitForContribution(userFunctions, secondCeremonyId)
await sleep(2000)
await sleep(3000)

const transcriptLocalFilePath = `${outputDirectory}/${getTranscriptLocalFilePath(
`${crct.data.prefix}_${nextZkeyIndex}.log`
Expand All @@ -447,7 +447,7 @@ describe("VMs", () => {
entropy,
transcriptLogger
)
await sleep(3000)
await sleep(5000)

// read the contribution hash
const transcriptContents = fs.readFileSync(transcriptLocalFilePath, "utf-8").toString()
Expand All @@ -457,14 +457,14 @@ describe("VMs", () => {
const contributionHash = matchContributionHash?.at(0)?.replace("\n\t\t", "")!

await progressToNextContributionStep(userFunctions, secondCeremonyId)
await sleep(2000)
await sleep(3000)
await permanentlyStoreCurrentContributionTimeAndHash(
userFunctions,
secondCeremonyId,
new Date().valueOf(),
contributionHash
)
await sleep(2000)
await sleep(3000)

await progressToNextContributionStep(userFunctions, secondCeremonyId)
await sleep(1000)
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/test/unit/security.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ describe("Security", () => {
const currentUser = getCurrentFirebaseAuthUser(userApp)
expect(await isCoordinator(currentUser)).to.be.true
await expect(setupCeremony(userFunctions, ceremonyData, ceremonyBucket, [circuitData])).to.be.rejectedWith(
"internal"
"unknown"
)

// check if we can still submit another ceremony or if the service is down
Expand Down

0 comments on commit 905b6c0

Please sign in to comment.