002 cross session discharge

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

PASS: session 1 opened — bridge holds 1 handle(s)
close() called for handle
PASS: session 2 closed — bridge holds 0 handle(s)

Expected output

PASS: session 1 opened — bridge holds 1 handle(s)
close() called for handle
PASS: session 2 closed — bridge holds 0 handle(s)

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)
flow ~run click a branch to expand · @labels scroll to their anchor
run (source: SESSION_2, scope: "files", budget: 100, handle_pool: &bridge_pool, auto_discharge: false)

Test Configuration

MUST_RUN