feat: HTTP debug logging in client.do()
This commit is contained in:
@@ -36,7 +36,7 @@ func TestServerList(t *testing.T) {
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
||||
rain := &Rainyun{client: newClient(srv.URL, "sk-test")}
|
||||
rain := &Rainyun{client: newClient(srv.URL, "sk-test", false)}
|
||||
svc := rain.Server()
|
||||
servers, err := svc.List(context.Background())
|
||||
if err != nil {
|
||||
@@ -66,7 +66,7 @@ func TestServerStart(t *testing.T) {
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
||||
rain := &Rainyun{client: newClient(srv.URL, "sk-test")}
|
||||
rain := &Rainyun{client: newClient(srv.URL, "sk-test", false)}
|
||||
err := rain.Server().Start(context.Background(), "12001")
|
||||
if err != nil {
|
||||
t.Fatalf("Start() error: %v", err)
|
||||
@@ -83,7 +83,7 @@ func TestServerVNC(t *testing.T) {
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
||||
rain := &Rainyun{client: newClient(srv.URL, "sk-test")}
|
||||
rain := &Rainyun{client: newClient(srv.URL, "sk-test", false)}
|
||||
url, err := rain.Server().GetVNC(context.Background(), "12001")
|
||||
if err != nil {
|
||||
t.Fatalf("GetVNC() error: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user