From def21acce75099c81ca703a93fa85c7308d5277d Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Wed, 30 Nov 2022 23:12:51 +0800 Subject: [PATCH] fix: add timeout --- device_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/device_test.go b/device_test.go index c403550..df3fa03 100644 --- a/device_test.go +++ b/device_test.go @@ -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) @@ -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), @@ -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),