Skip to content

Commit

Permalink
fix: add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Nov 30, 2022
1 parent a9b7c1e commit def21ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func Test_device_share(t *testing.T) {

func Test_device_connect(t *testing.T) {
SetDebug(true, true)
remoteDev := NewRemoteConnect("127.0.0.1", 9123)
remoteDev := NewRemoteConnect("127.0.0.1", 9123, 30)
data, err := remoteDev.GetValue("", "ProductVersion")
if err != nil {
log.Panic(err)
Expand All @@ -195,7 +195,7 @@ func Test_device_connect(t *testing.T) {

func TestMockPerfdUser1(t *testing.T) {
//SetDebug(true, true)
remoteDev := NewRemoteConnect("127.0.0.1", 9123)
remoteDev := NewRemoteConnect("127.0.0.1", 9123, 30)
data, err := remoteDev.PerfStart(
WithPerfSystemCPU(true),
WithPerfSystemMem(true),
Expand Down Expand Up @@ -225,7 +225,7 @@ func TestMockPerfdUser1(t *testing.T) {

func TestMockPerfdUser2(t *testing.T) {
//SetDebug(true, true)
remoteDev := NewRemoteConnect("127.0.0.1", 9123)
remoteDev := NewRemoteConnect("127.0.0.1", 9123, 30)
data, err := remoteDev.PerfStart(
WithPerfSystemCPU(true),
WithPerfSystemMem(true),
Expand Down

0 comments on commit def21ac

Please sign in to comment.