Skip to content

test(registry): test revoke on never-registered address returns NotFound#334

Merged
K1NGD4VID merged 1 commit into
mainfrom
fix/187-revoke-notfound-test
Jul 12, 2026
Merged

test(registry): test revoke on never-registered address returns NotFound#334
K1NGD4VID merged 1 commit into
mainfrom
fix/187-revoke-notfound-test

Conversation

@K1NGD4VID

Copy link
Copy Markdown
Contributor

Summary

Adds a negative test asserting that revoke on a never-registered address panics with RegistryError::NotFound (Contract error #3).

Changes

  • contracts/registry/src/test.rs: Add test_revoke_unregistered_panics using #[should_panic(expected = "Error(Contract, #3)")], matching the existing negative-test pattern (e.g. test_update_metadata_unregistered_panics, test_get_profile_unknown_panics).

Notes

Local cargo test was blocked by a Windows toolchain issue (dlltool.exe not found while compiling getrandom); cargo fmt --all --check passes. CI is the gate.

Closes #187

@K1NGD4VID
K1NGD4VID merged commit 1c34fdf into main Jul 12, 2026
2 checks passed
@K1NGD4VID
K1NGD4VID deleted the fix/187-revoke-notfound-test branch July 12, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Low] test(registry): test revoke on never-registered address returns NotFound

1 participant