feeds always fetches via wghttp proxy

This commit is contained in:
Bel LaPointe
2025-04-27 12:49:59 -06:00
parent 8b67437fd1
commit ba429f6028
3 changed files with 100 additions and 1 deletions

View File

@@ -14,6 +14,12 @@ import (
func TestFeedFetch(t *testing.T) {
ctx := context.Background()
proxyU := feeds.ProxyU
feeds.ProxyU = nil
t.Cleanup(func() {
feeds.ProxyU = proxyU
})
s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
t.Logf("%s", r.URL.String())