package console import ( "context" "testing" "github.com/carlosframework/platform/internal/release" ) type fix4UnexpectedReportStore struct{ release.Store } func (fix4UnexpectedReportStore) Get(context.Context, string) ([]byte, string, error) { panic("host reporting without a console ID accessed the control plane") } func TestPlan9Fix4FlagOffNoConsoleIDDoesNotReportOrRelease(t *testing.T) { t.Setenv("CARLOS_HOST_CLAIM", "") s := &Server{cfg: Config{Releases: fix4UnexpectedReportStore{}, Key: make([]byte, 64)}} s.StartHostReports(t.Context()) }