Skip to content

Commit

Permalink
Fix distr integration test (#1581)
Browse files Browse the repository at this point in the history
* Add pause prior to distr queries to reduce flakiness

* Update sleep
  • Loading branch information
udpatil authored Apr 22, 2024
1 parent 43cb064 commit 49eb8b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration_test/distribution_module/rewards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
env: REWARDS_START
# Simple tx to increase rewards
- cmd: printf "12345678\n" | seid tx bank send $NODE_ADMIN_ACC $DISTRIBUTION_TEST_ACC 1sei -b block --fees 2000usei --chain-id sei -y
# Wait a couple seconds before querying to reduce likelihood of flaky test results
- cmd: sleep 1
# Get rewards after tx
- cmd: seid q distribution rewards $NODE_ADMIN_ACC -o json | jq -r ".total[0].amount | tonumber"
env: REWARDS_AFTER_TX
Expand Down

0 comments on commit 49eb8b3

Please sign in to comment.