change: replace gadb log

This commit is contained in:
debugtalk
2022-12-26 16:49:43 +08:00
parent 869a1b59c3
commit 9b081bff8b
7 changed files with 37 additions and 87 deletions
-18
View File
@@ -7,8 +7,6 @@ import (
)
func TestClient_ServerVersion(t *testing.T) {
SetDebug(true)
adbClient, err := NewClient()
if err != nil {
t.Fatal(err)
@@ -23,8 +21,6 @@ func TestClient_ServerVersion(t *testing.T) {
}
func TestClient_DeviceSerialList(t *testing.T) {
SetDebug(true)
adbClient, err := NewClient()
if err != nil {
t.Fatal(err)
@@ -41,8 +37,6 @@ func TestClient_DeviceSerialList(t *testing.T) {
}
func TestClient_DeviceList(t *testing.T) {
SetDebug(true)
adbClient, err := NewClient()
if err != nil {
t.Fatal(err)
@@ -59,8 +53,6 @@ func TestClient_DeviceList(t *testing.T) {
}
func TestClient_ForwardList(t *testing.T) {
SetDebug(true)
adbClient, err := NewClient()
if err != nil {
t.Fatal(err)
@@ -77,8 +69,6 @@ func TestClient_ForwardList(t *testing.T) {
}
func TestClient_ForwardKillAll(t *testing.T) {
SetDebug(true)
adbClient, err := NewClient()
if err != nil {
t.Fatal(err)
@@ -96,8 +86,6 @@ func TestClient_Connect(t *testing.T) {
t.Fatal(err)
}
SetDebug(true)
err = adbClient.Connect("192.168.1.28")
if err != nil {
t.Fatal(err)
@@ -110,8 +98,6 @@ func TestClient_Disconnect(t *testing.T) {
t.Fatal(err)
}
SetDebug(true)
err = adbClient.Disconnect("192.168.1.28")
if err != nil {
t.Fatal(err)
@@ -124,8 +110,6 @@ func TestClient_DisconnectAll(t *testing.T) {
t.Fatal(err)
}
SetDebug(true)
err = adbClient.DisconnectAll()
if err != nil {
t.Fatal(err)
@@ -133,8 +117,6 @@ func TestClient_DisconnectAll(t *testing.T) {
}
func TestClient_KillServer(t *testing.T) {
SetDebug(true)
adbClient, err := NewClient()
if err != nil {
t.Fatal(err)