package http import ( "context" "crypto/x509" "internetpressure.io/probe-agent/internal/protocol" ) // runWithRoots runs the check trusting the given roots (tests only). func runWithRoots(c *Checker, t protocol.Target, roots *x509.CertPool) protocol.Measurement { prev := testRoots testRoots = roots defer func() { testRoots = prev }() return c.Run(context.Background(), t) }