002 cross session discharge

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

Session 1 left 1 handle(s) on bridge
close() called for handle
Session 2 complete, 0 handle(s) remaining
PASS: open=1, close=0

Expected output

Session 1 left 1 handle(s) on bridge
close() called for handle
Session 2 complete, 0 handle(s) remaining
PASS: open=1, close=0

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "files", source: open(10) close(1))
flow ~run click a branch to expand · @labels scroll to their anchor
run (source: SESSION_1, scope: "files", budget: 100, handle_pool: &bridge_pool, auto_discharge: false)

Test Configuration

MUST_RUN