8000 test: an open transaction dropped in the Rust crate rolls back (minigraf#824) by adityamukho · Pull Request #27 · project-minigraf/minigraf-node · GitHub
[go: up one dir, main page]

Skip to content

test: an open transaction dropped in the Rust crate rolls back (minigraf#824) - #27

Merged
adityamukho merged 1 commit into
v3from
test/824-tx-drop
Nov 11, 2026
Merged

adityamukho merged 1 commit into
v3from
test/824-tx-drop

Conversation

@adityamukho
Copy link
Copy Markdown
Contributor

Adds the Rust-crate test D7 of the #824 design asks for: dropping the last reference to an open WriteTransaction (what napi's finalizer does) rolls it back and frees the write lock, and one dropped after close() does nothing. My earlier comment on #25 said the crate could not host this test; that was wrong, cargo test constructs the napi classes fine.

Refs project-minigraf/minigraf#824

🤖 Generated with Claude Code

https://claude.ai/code/session_01H2a7QouMzKp3tAWxgVsxRf

…raf#824)

Dropping the last reference (what napi's finalizer does) rolls the transaction back and frees the write lock; one dropped after close() does nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QouMzKp3tAWxgVsxRf
@adityamukho
adityamukho merged commit 98e01c9 into v3 Nov 11, 2026
14 checks passed
@adityamukho
adityamukho deleted the test/824-tx-drop branch November 11, 2026 02:57
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.

1 participant

0