Commit cd5c8a4
committed
Harden flaky linked-grid test: assert session_key, not id()
test_show_linked_grid_one_state_manager_per_experiment compared id() of
StateManagers it didn't retain, so GC could reuse an id within a run and make
the id-based set flaky in full-session order (passed in isolation / the gate,
but could report 1 distinct id instead of 2). Assert on the stable _session_key
(demo__exp0 / demo__exp1) — the actual one-StateManager-per-experiment invariant.
Verification harness only; no change to any reviewed unit.1 parent 5b7a545 commit cd5c8a4
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
278 | 281 | | |
279 | 282 | | |
280 | 283 | | |
| |||
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
287 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
| |||
0 commit comments