From 49eb8b3d205d4a73c5e2b2bb3a433f886279028b Mon Sep 17 00:00:00 2001 From: Uday Patil Date: Mon, 22 Apr 2024 14:26:42 -0500 Subject: [PATCH] Fix distr integration test (#1581) * Add pause prior to distr queries to reduce flakiness * Update sleep --- integration_test/distribution_module/rewards.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration_test/distribution_module/rewards.yaml b/integration_test/distribution_module/rewards.yaml index b24ba81e08..5bc59dba19 100644 --- a/integration_test/distribution_module/rewards.yaml +++ b/integration_test/distribution_module/rewards.yaml @@ -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