common/pkg/coach-client/us_test.go

20 lines
388 B
Go
Raw Permalink Normal View History

2024-05-21 15:36:51 +08:00
package coach_client
import (
"context"
"testing"
2024-11-20 21:14:15 +08:00
"gitea.timerzz.com/kedaya_haitao/common/pkg/proxy"
2024-05-21 15:36:51 +08:00
)
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-11-20 21:14:15 +08:00
resp, err := client.RequestProductDetail(context.Background(), "CU808-CHK")
2024-05-21 15:36:51 +08:00
if err != nil {
t.Fatal(err)
}
t.Log(resp)
}