-
Notifications
You must be signed in to change notification settings - Fork 419
Closed
Labels
Description
Test frequently fails for completely unrelated PRs.
test_commit_and_reveal_weights_cr3 fails often
test_liqudity fails about half the time
CR3 failure:
# Fetch current commits pending on the chain
commits_on_chain = subtensor.get_current_weight_commit_info_v2(netuid=netuid)
address, commit_block, commit, reveal_round = commits_on_chain[0]
# Assert correct values are committed on the chain
assert expected_reveal_round == reveal_round
assert address == alice_wallet.hotkey.ss58_address
> assert commit_block == expected_commit_block + 1
E assert 38 == (38 + 1)
Liquidity failure:
# Add liquidity
success, message = subtensor.extrinsics.add_liquidity(
wallet=alice_wallet,
netuid=alice_subnet_netuid,
liquidity=Balance.from_tao(1),
price_low=Balance.from_tao(1.7),
price_high=Balance.from_tao(1.8),
wait_for_inclusion=True,
wait_for_finalization=True,
)
> assert success, message
E AssertionError: Subtensor returned `InsufficientBalance(Module)` error. This means: `The caller does not have enough balance for the operation. | Please consult [https://docs.bittensor.com/errors/subtensor#insufficientbalance`.](https://docs.bittensor.com/errors/subtensor#insufficientbalance%60.)
E assert False