package automationintegration_test

import (
	"os"
	"testing"

	"github.com/nexuscrm/backend/pkg/serverruntime"
)

// TestMain wires the control-plane seam ports before any integration test
// runs. The control-plane packages carry no bootstrap-backed seam defaults;
// every entry point that runs the apply path (InitL0/ApplyPacks/install-pack,
// which this package's harnesses call directly) must inject the seams first
// or the ports are nil. Mirrors the serverruntime TestMain precedent
// (backend/pkg/serverruntime/controlplane_seam_wiring_main_test.go).
func TestMain(m *testing.M) {
	serverruntime.WireControlplaneSeams()
	os.Exit(m.Run())
}
