Skip to content

Commit

Permalink
fix(CI): shall wait before stop the local testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed May 15, 2024
1 parent 99573ee commit 4173ed4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ jobs:
run: pgrep safenode | wc -l
if: always()

- name: Wait before verifying reward forwarding
run: sleep 300

- name: Stop the local network and upload logs
if: always()
uses: maidsafe/sn-local-testnet-action@main
Expand Down Expand Up @@ -415,14 +418,11 @@ jobs:
echo "Total swarm_driver long handling duration is: $total_long_handling ms"
echo "Total average swarm_driver long handling duration is: $average_handling_ms ms"
- name: Wait before verifying reward forwarding
run: sleep 120

- name: Verify reward forwarding using rg
shell: bash
timeout-minutes: 1
run: |
min_reward_forwarding_times="150"
min_reward_forwarding_times="120"
reward_forwarding_count=$(rg "Reward forwarding completed sending spend" $NODE_DATA_PATH -c --stats | \
rg "(\d+) matches" | rg "\d+" -o)
echo "Carried out $reward_forwarding_count reward forwardings"
Expand Down

0 comments on commit 4173ed4

Please sign in to comment.