Skip to content

Commit

Permalink
fix: PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Nov 15, 2024
1 parent 6479bcc commit 7f38bef
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
with:
repository: 0xPolygon/kurtosis-cdk
path: "kurtosis-cdk"
ref: "jesteban/bump_aggsender"
ref: "v0.2.20"

- name: Setup Bats and bats libs
uses: bats-core/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ test-e2e-fork12-rollup: stop
.PHONY: test-e2e-fork12-pessimistic
test-e2e-fork12-pessimistic: stop
./run-e2e.sh fork12 pessimistic
bats bats/pessimistic/
bats bats/pp/

.PHONY: stop
stop:
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 2 additions & 10 deletions test/scripts/agglayer_certificates_monitor.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/env bash

# This script monitors the agglayer certificates progress of pessimistic proof.
###############################################################################


###############################################################################
function parse_params(){
# Check if the required arguments are provided.
if [ "$#" -lt 2 ]; then
Expand All @@ -18,7 +14,7 @@ function parse_params(){
# The script timeout (in seconds).
timeout="$2"
}
###############################################################################

function check_timeout(){
local _end_time=$1
current_time=$(date +%s)
Expand All @@ -28,7 +24,6 @@ function check_timeout(){
fi
}

###############################################################################
function check_num_certificates(){
local _cmd="echo 'select status, count(*) from certificate_info group by status;' | sqlite3 /tmp/aggsender.sqlite"
local _outcmd=$(mktemp)
Expand All @@ -52,10 +47,7 @@ function check_num_certificates(){
fi
}

###############################################################################
# MAIN
###############################################################################

declare -A aggsender_status_map=(
[0]="Pending"
[1]="Proven"
Expand All @@ -75,4 +67,4 @@ while true; do
check_num_certificates
check_timeout $end_time
sleep 10
done
done

0 comments on commit 7f38bef

Please sign in to comment.