We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0225d commit a0494b2Copy full SHA for a0494b2
integration_tests/test_staking_cache.py
@@ -472,12 +472,11 @@ def test_staking_cache_unbonding_validator(cronos_staking_cache):
472
rsp = cli.unbond_amount(val_addr, unbond_amount, "validator")
473
print(f"Unbonding response: {rsp}")
474
475
- if rsp["code"] == 0:
476
- print("Unbonding transaction successful")
477
- else:
478
- msg = f"Warning: Unbonding returned code {rsp['code']}: "
479
- msg += rsp.get("raw_log", "")
480
- print(msg)
+ assert rsp["code"] == 0, (
+ f"Validator self-unbond returned code {rsp['code']}: "
+ f"{rsp.get('raw_log', rsp)}"
+ )
+ print("Unbonding transaction successful")
481
482
wait_for_new_blocks(cli, 1)
483
0 commit comments