Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaSethi committed May 15, 2024
1 parent aa036d5 commit a3eb8b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- develop
- master
- tmp/ci-fuzz
pull_request:
branches:
- develop
Expand Down
6 changes: 3 additions & 3 deletions test/StateReceiver.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit a3eb8b0

Please sign in to comment.