us-coach-spider/pkg/coach-client/client_test.go
timerzz 075a4812e4
All checks were successful
Build image / build (push) Successful in 1m30s
fix 修复coach-client接口问题
2024-05-14 17:43:08 +08:00

19 lines
452 B
Go

package coach_client
import (
"context"
"gitea.timerzz.com/kedaya_haitao/common/pkg/proxy"
"testing"
)
func TestClient(t *testing.T) {
subs := []string{"https://us.timerzz.com:26106/vmess/sub", "https://us.timerzz.com:26106/trojan/sub", "https://us.timerzz.com:26106/ssr/sub"}
pool := proxy.NewProxyPool(subs)
client := NewClient(pool)
resp, err := client.ViewAllBags(context.Background(), 1)
if err != nil {
t.Fatal(err)
}
t.Log(resp)
}