| 1 | package session |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "reasonix/internal/testenv" |
| 7 | ) |
| 8 | |
| 9 | // A Service holds its writer lease until CloseAll or its idle TTL, so a test |
| 10 | // that forgets to close one still owns the lease when t.TempDir removes the |
| 11 | // directory. Only Windows reports that as a cleanup failure; this guard makes |
| 12 | // it deterministic here. |
| 13 | func TestMain(m *testing.M) { |
| 14 | testenv.RunWithLeaseGuard(m) |
| 15 | } |
| 16 |