package cli import ( "os" "testing" ) // TestMain isolates the package from an operator's real notification setup: // these tests run real servers and runs, a developer shell may export the // installed server's ntfy configuration, and no test may publish to it. func TestMain(m *testing.M) { for _, name := range []string{"PIPELINES_NTFY_URL", "PIPELINES_NTFY_PUBLIC_URL", "PIPELINES_NTFY_TOKEN", "PIPELINES_NTFY_TOKEN_FILE", "PIPELINES_WEB_PUBLIC_URL"} { os.Unsetenv(name) } os.Exit(m.Run()) }