Skip to content

Commit

Permalink
increase timeouts for unwind tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoscott committed Oct 2, 2024
1 parent 119ea76 commit 4b67912
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions zk/tests/unwinds/unwind.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dataPath="./datadir"
firstStop=11204
stopBlock=11315
unwindBatch=70
firstTimeout=120s
secondTimeout=60s

rm -rf "$dataPath/rpc-datadir"
rm -rf "$dataPath/phase1-dump1"
Expand All @@ -31,7 +33,7 @@ timeout 300s go run ./zk/debug_tools/datastream-host --file="$(pwd)/zk/tests/unw
sleep 5

# run erigon for a while to sync to the unwind point to capture the dump
timeout 40s ./build/bin/cdk-erigon \
timeout $firstTimeout ./build/bin/cdk-erigon \
--datadir="$dataPath/rpc-datadir" \
--config=./dynamic-integration8.yaml \
--zkevm.sync-limit=${firstStop}
Expand All @@ -40,7 +42,7 @@ timeout 40s ./build/bin/cdk-erigon \
go run ./cmd/hack --action=dumpAll --chaindata="$dataPath/rpc-datadir/chaindata" --output="$dataPath/phase1-dump1"

# now run to the final stop block
timeout 15s ./build/bin/cdk-erigon \
timeout $secondTimeout ./build/bin/cdk-erigon \
--datadir="$dataPath/rpc-datadir" \
--config=./dynamic-integration8.yaml \
--zkevm.sync-limit=${stopBlock}
Expand All @@ -59,7 +61,7 @@ go run ./cmd/integration state_stages_zkevm \
go run ./cmd/hack --action=dumpAll --chaindata="$dataPath/rpc-datadir/chaindata" --output="$dataPath/phase1-dump2"

# now sync again
timeout 15s ./build/bin/cdk-erigon \
timeout $secondTimeout ./build/bin/cdk-erigon \
--datadir="$dataPath/rpc-datadir" \
--config=./dynamic-integration8.yaml \
--zkevm.sync-limit=${stopBlock}
Expand Down

0 comments on commit 4b67912

Please sign in to comment.