Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Relax perf test so has hope of running on travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
timoxley committed Feb 13, 2020
1 parent 17620be commit ad9cfad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe("MonoplasmaState", () => {
this.timeout(40000)

const initialMembers = []
while (initialMembers.length < 200000) {
while (initialMembers.length < 150000) {
initialMembers.push({
address: `0x${crypto.randomBytes(20).toString("hex")}`,
earnings: 0,
Expand All @@ -124,7 +124,7 @@ describe("MonoplasmaState", () => {
// each getProofAt on cold cache (new block) takes about 5s
const startTime = Date.now()
//for (let j = 0; j < 10; j++) {
for (let i = 0; i < 20; i++) {
for (let i = 0; i < 15; i++) {
const bnum = 100 + i % 3
const { address } = initialMembers[(50 * i) % initialMembers.length]
await plasma.getProofAt(address, bnum)
Expand Down

0 comments on commit ad9cfad

Please sign in to comment.