Skip to content

Commit edfd6ac

Browse files
authored
Fix a flaky test (and less DEFAULT_TX_CONFIG) (#20280)
1 parent 064eaa2 commit edfd6ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

chia/_tests/wallet/vc_wallet/test_vc_wallet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,18 @@ async def test_vc_lifecycle(wallet_environments: WalletTestFramework) -> None:
164164
}
165165

166166
# Generate DID as an "authorized provider"
167-
async with wallet_0.wallet_state_manager.new_action_scope(DEFAULT_TX_CONFIG, push=True) as action_scope:
167+
async with wallet_0.wallet_state_manager.new_action_scope(wallet_environments.tx_config, push=True) as action_scope:
168168
did_id: bytes32 = bytes32.from_hexstr(
169169
(
170170
await DIDWallet.create_new_did_wallet(
171171
wallet_node_0.wallet_state_manager, wallet_0, uint64(1), action_scope
172172
)
173173
).get_my_DID()
174174
)
175+
await full_node_api.wait_for_wallet_synced(wallet_node_0)
175176

176177
# Mint a VC
177-
async with wallet_0.wallet_state_manager.new_action_scope(DEFAULT_TX_CONFIG, push=True) as action_scope:
178+
async with wallet_0.wallet_state_manager.new_action_scope(wallet_environments.tx_config, push=True) as action_scope:
178179
ph = await action_scope.get_puzzle_hash(wallet_0.wallet_state_manager)
179180
vc_record = (
180181
await client_0.vc_mint(

0 commit comments

Comments
 (0)