Skip to content

Commit

Permalink
fix: e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Dec 18, 2024
1 parent 8a2c6fc commit c73da99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
11 changes: 4 additions & 7 deletions test/bats/pp-multi/bridge-l2_to_l2-e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ setup() {
}

@test "Test L2 to L2 bridge" {


echo "=== Running LxLy bridge eth L1 to L2(PP1) amount:$amount" >&3
destination_net=$l2_pp1b_network_id
bridge_asset "$native_token_addr" "$l1_rpc_url"
Expand All @@ -55,9 +53,8 @@ setup() {
echo "=== Running LxLy claim L1 to L2(PP2) for $bridge_tx_hash_pp2" >&3
run claim_tx_hash "$timeout" "$bridge_tx_hash_pp2" "$destination_addr" "$l2_pp2_url" "$l2_pp2b_url"
assert_success





# reduce eth amount
amount=1234567
echo "=== Running LxLy bridge L2(PP2) to L2(PP1) amount:$amount" >&3
Expand All @@ -67,8 +64,8 @@ setup() {

echo "=== Running LxLy claim L2(PP2) to L2(PP1) for: $bridge_tx_hash" >&3
claim_tx_hash "$timeout" "$bridge_tx_hash" "$destination_addr" "$l2_pp1_url" "$l2_pp2b_url"
echo "... deposit $global_index"
global_index_pp2_to_pp1=$global_index
echo "... deposit [$global_index]"
global_index_pp2_to_pp1="$global_index"

# Now a need to do a bridge on L2(PP1) to trigger a certificate:
ether_value=${ETHER_VALUE:-"0.0100000054"}
Expand Down
1 change: 1 addition & 0 deletions test/helpers/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ function run_with_timeout(){
echo "....[$(date '+%Y-%m-%d %H:%M:%S')] ⏳Running [$name] ..." >&3
echo "executing: $*"
run $*
echo "output: $output"
echo "result: $status"
if [ $status -eq 0 ]; then
echo "....[$(date '+%Y-%m-%d %H:%M:%S')] ✅ successful [$name] " >&3
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/lxly-bridge-test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function claim_tx_hash() {
fi
done
echo "....[$(date '+%Y-%m-%d %H:%M:%S')] claimed" >&3
export global_index=$(jq '.global_index' $current_deposit)
export global_index=$(jq '.global_index' $current_deposit | sed -e 's/\x1b\[[0-9;]*m//g' | tr -d '"')
# clean up temp files
rm $current_deposit
rm $current_proof
Expand Down

0 comments on commit c73da99

Please sign in to comment.