From 4cd50d90b16abed9ded3dd844d280a77aded7b3a Mon Sep 17 00:00:00 2001 From: Crt Ahlin Date: Thu, 26 Feb 2026 08:54:21 +0100 Subject: [PATCH] Add propagation wait to Base Sepolia anchor test The verify call right after anchoring can fail because Base Sepolia needs a few seconds for the state to be readable after tx confirmation. Add a 3s sleep. --- tests/test_integration.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_integration.py b/tests/test_integration.py index 81e7d4d..9a06dc0 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -1021,6 +1021,7 @@ def test_chain_client_anchor_base_sepolia(self): """ from swarm_provenance_uploader.core.chain_client import ChainClient import secrets + import time try: client = ChainClient(chain="base-sepolia") @@ -1042,6 +1043,11 @@ def test_chain_client_anchor_base_sepolia(self): assert result.tx_hash is not None assert result.block_number > 0 + # Wait for the anchor to propagate before verifying. + # Base Sepolia needs a few seconds for the state to be + # readable after the transaction is confirmed. + time.sleep(3) + # Verify it's on-chain assert client.verify(swarm_hash=test_hash) is True except Exception as e: