Skip to main content

Module state

Module state 

Source
Expand description

Shared container state: lock files, per-process resource registry, and stale-process pruning.

Test binaries from several processes may share one reusable container. The state file records which process created which resources (for example per-test databases), so a later run can clean up resources whose owner process already exited.

Structs§

ContainerLease
Lease that prunes dead-process entries from a service’s state file on drop.
ContainerStateLock
Exclusive filesystem lock guarding one service’s state file.
SharedContainerState
Serializable registry of live test processes and the resources they created.