From a3eb8b0f9898f68cf45fbc785fb465daf0ed88e4 Mon Sep 17 00:00:00 2001 From: DhairyaSethi <55102840+DhairyaSethi@users.noreply.github.com> Date: Wed, 15 May 2024 09:43:33 +0530 Subject: [PATCH] tmp --- .github/workflows/ci.yml | 1 + test/StateReceiver.test.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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]