Skip to content

Commit

Permalink
test: improve log message on invalid registration (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsporny authored Dec 10, 2024
1 parent 38c2bed commit c60c8c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion E2E-tests/tests/committee/test_registrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def test_register_candidate(candidate: Candidates, api: BlockchainApi, db: Sessi
assert (
registered_grandpa_pub_key == registration["grandpaPubKey"]
), f"Could not find Grandpa public key {registered_grandpa_pub_key} registered for MC epoch {next_status_epoch}"
assert registration["isValid"], f"Registered candidate {candidate.name} is not valid"
assert registration[
"isValid"
], f"Registered candidate {candidate.name} is not valid. Invalidity reason: {registration['invalidReasons']}."


@mark.skip_blockchain("pc_evm", reason="not implemented yet")
Expand Down

0 comments on commit c60c8c3

Please sign in to comment.