cron main test localhost ok

This commit is contained in:
bel
2025-05-04 09:58:32 -06:00
parent b200deb98f
commit 32a010e697

View File

@@ -16,6 +16,10 @@ import (
)
func TestOne(t *testing.T) {
was := feeds.ProxyU
feeds.ProxyU = nil
t.Cleanup(func() { feeds.ProxyU = was })
ctx, can := context.WithTimeout(context.Background(), 5*time.Second)
defer can()
@@ -25,7 +29,7 @@ func TestOne(t *testing.T) {
},
"feeds": func(t *testing.T) context.Context {
gets := []string{}
sURL := "http://192.168.0.167:10000/"
sURL := "http://localhost:10000/"
s := &http.Server{
Addr: ":10000",
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {