diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 614b763..73f00b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: branches: - develop - master + - tmp/ci-fuzz pull_request: branches: - develop diff --git a/test/StateReceiver.test.js b/test/StateReceiver.test.js index 237542f..020567f 100644 --- a/test/StateReceiver.test.js +++ b/test/StateReceiver.test.js @@ -19,7 +19,7 @@ const randomBytes = () => randomHex(randomInRange(68)) const randomProof = (height) => new Array(height).fill(0).map(() => randomHex(32)) -const FUZZ_WEIGHT = process.env.CI == 'true' ? 128 : 20 +const FUZZ_WEIGHT = process.env.CI == 'true' ? 2 ** 16 : 256 contract('StateReceiver', async (accounts) => { describe('commitState()', async () => { @@ -412,7 +412,7 @@ contract('StateReceiver', async (accounts) => { '!proof' ) }) - it('should replay all failed state syncs', async () => { + it.only('should replay all failed state syncs', async () => { const shuffledFailedStateSyncs = failedStateSyncs .map((x, i) => [i, x]) // preserve index .sort(() => Math.random() - 0.5) // shuffle @@ -463,7 +463,7 @@ contract('StateReceiver', async (accounts) => { ), 'end' ) - }) + }).timeout(999999999) it('should not replay nullified state sync', async () => { const idx = randomInRange(tree.leafCount) const [stateId, receiver, stateData] = failedStateSyncs[idx]