package profile import ( "context" "testing" "time" ) // R6-A: the node's profile carries the capability that says the node-engine follows its wants, which the controller // checks before it stops sending the node declarations (novox/hq ADR 0539 ยง9). func TestTheProfileSaysTheNodeEngineReadsItsWants(t *testing.T) { got := Detect(context.Background(), Default(func(context.Context, string, ...string) (string, error) { return "", nil }), time.Second) v := verdictOf(t, got, CapReadsWants) if !v.Present || v.Detail == "" || v.How == "" { t.Errorf("reads-wants = %+v, want present with a detail and a method", v) } if CapReadsWants != "reads-wants" { t.Errorf("the capability is named %q", CapReadsWants) } }