partition
suspend fun partition(peerId: PeerId, at: Instant, reason: ReconnectReason = ReconnectReason.LinkTimeout, windowExpiresAt: Instant = at + 1.minutes)
Flip the named member's Liveness to Liveness.Partitioned and emit MembershipEvent.Partitioned.
windowExpiresAt defaults to one minute past at — an arbitrary but non-null stand-in, since Liveness.Partitioned carries a real deadline in production. Pass an explicit value when a test asserts on the countdown. It is the last parameter so existing positional partition(peerId, at, reason) call sites keep compiling.
The event's MembershipEvent.Partitioned.localFabric tag is this fake's current level, so a test that drives setLocalFabric first gets the same precedence signal a real room would (#1712): drop our own fabric, then partition a peer, and the event says the silence is not evidence about that peer.