Skip to content

Commit

Permalink
test: increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Sep 12, 2024
1 parent 728befb commit 5e0c439
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 6 additions & 2 deletions test/bridge-e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ setup() {
echo "Running LxLy claim"

# The script timeout (in seconds).
timeout="60"
timeout="120"
start_time=$(date +%s)
end_time=$((start_time + timeout))

Expand All @@ -58,9 +58,13 @@ setup() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] ❌ Exiting... Timeout reached!"
exit 1
fi

run claim
if [ $status -eq 0 ]; then
break
fi
sleep 10
done

assert_success
}
7 changes: 2 additions & 5 deletions test/helpers/lxly-bridge-test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,9 @@ function claim() {

if [[ $claimable_count == 0 ]]; then
echo "We have no claimable deposits at this time" >&3
exit
exit 1
fi
# if [[ $rpc_network_id != $destination_net ]]; then
# echo "The bridge on the current rpc has network id $rpc_network_id but you are claming a transaction on network $destination_net - are you sure you're using the right RPC??" >&3
# exit 1
# fi

echo "We have $claimable_count claimable deposits on network $destination_net. Let's get this party started." >&3
readonly current_deposit=$(mktemp)
readonly current_proof=$(mktemp)
Expand Down

0 comments on commit 5e0c439

Please sign in to comment.