Skip to content

Commit

Permalink
Fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 committed Jan 15, 2025
1 parent e763c2e commit bbb9171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/tests/services/test_contract_metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from copy import copy
from unittest import mock
from unittest.mock import MagicMock

Expand Down Expand Up @@ -319,7 +320,7 @@ async def test_process_metadata_should_update_contracts(
await AbiSource(name="Etherscan", url="").create(session)
contract_metadata = EnhancedContractMetadata(
address=contract_address,
metadata=etherscan_proxy_metadata_mock,
metadata=copy(etherscan_proxy_metadata_mock), # Avoid race condition
source=ClientSource.ETHERSCAN,
chain_id=1,
)
Expand Down

0 comments on commit bbb9171

Please sign in to comment.