common/pkg/coach-client/client_us_test.go

19 lines
368 B
Go
Raw Normal View History

2024-05-21 15:36:51 +08:00
package coach_client
import (
"context"
"gitea.timerzz.com/kedaya_haitao/common/pkg/proxy"
"testing"
)
func TestClient(t *testing.T) {
2024-11-20 21:11:19 +08:00
subs := []string{"https://us.timerzz.com:26106/vmess/sub"}
2024-05-21 15:36:51 +08:00
pool := proxy.NewProxyPool(subs)
2024-06-14 15:26:27 +08:00
client := USClient(pool)
2024-05-21 15:36:51 +08:00
resp, err := client.ViewAllBags(context.Background(), 1)
if err != nil {
t.Fatal(err)
}
t.Log(resp)
}