Skip to content

Commit

Permalink
func-tests: try to fix flaky bridge tests (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli authored Nov 1, 2024
1 parent 7bd9752 commit 59a60f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functional-tests/fn_bridge_deposit_happy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ def main(self, ctx: flexitest.RunContext):

# 1st deposit
self.test_deposit(ctx, addr_1, el_address_1)
time.sleep(0.5)

# 2nd deposit
self.test_deposit(ctx, addr_2, el_address_2)
time.sleep(0.5)

# 3rd deposit, now to a previously used address
self.test_deposit(ctx, addr_3, el_address_1, new_address=False)
time.sleep(0.5)

return True

Expand Down Expand Up @@ -159,6 +162,7 @@ def test_deposit(
assert n_deposits_post == n_deposits_pre + 1, "deposit was not registered"

# Make sure that the balance has increased
time.sleep(0.5)
new_balance = int(rethrpc.eth_getBalance(f"0x{el_address}"), 16)
self.logger.debug(f"Balance after deposit (EL address): {new_balance}")
assert new_balance > original_balance, "balance did not increase"
Expand Down

0 comments on commit 59a60f3

Please sign in to comment.