feeds always fetches via wghttp proxy
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user