carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package hostbox
2
3import "testing"
4
5func TestPlan11RecoveryCannotSettleAnUnobservedUnit(t *testing.T) {
6 j, r := roleLaunchFixture(t)
7 if err := j.IntendUnit(t.Context(), r); err != nil {
8 t.Fatal(err)
9 }
10 if err := j.SettleRecovered(t.Context(), r.Target); err == nil {
11 t.Fatal("recovery bypassed root's unit observation")
12 }
13}
14