Skip to content

test(escrow): add test for double initialize#335

Merged
K1NGD4VID merged 1 commit into
mainfrom
fix/250-escrow-double-init
Jul 12, 2026
Merged

test(escrow): add test for double initialize#335
K1NGD4VID merged 1 commit into
mainfrom
fix/250-escrow-double-init

Conversation

@K1NGD4VID

Copy link
Copy Markdown
Contributor

Summary

Adds a negative test that pins the current AlreadyInitialized behaviour when EscrowContract::initialize is called a second time.

Changes

  • contracts/escrow/src/test.rs: new test_initialize_twice_panics test using #[should_panic(expected = "Error(Contract, #1)")], matching the existing #[should_panic] style used elsewhere in the file.

Notes

Local cargo test could not be run on the Windows worktree (dlltool.exe not found); relying on CI (build-and-test) as the gate.

Closes #250

@K1NGD4VID
K1NGD4VID merged commit d80cbe8 into main Jul 12, 2026
2 checks passed
@K1NGD4VID
K1NGD4VID deleted the fix/250-escrow-double-init 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(escrow): add test for double initialize

1 participant