mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
fix: lint warning
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0+2411231506
|
v5.0.0+2411231513
|
||||||
|
|||||||
@@ -1047,5 +1047,6 @@ func (ad *adbDriver) RecordScreen(folderPath string, duration time.Duration) (vi
|
|||||||
return filepath.Abs(fileName)
|
return filepath.Abs(fileName)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ad *adbDriver) TearDown() {
|
func (ad *adbDriver) TearDown() error {
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -338,5 +338,6 @@ func (hd *hdcDriver) RecordScreen(folderPath string, duration time.Duration) (vi
|
|||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (hd *hdcDriver) TearDown() {
|
func (hd *hdcDriver) TearDown() error {
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -654,5 +654,5 @@ type IWebDriver interface {
|
|||||||
GetDriverResults() []*DriverResult
|
GetDriverResults() []*DriverResult
|
||||||
RecordScreen(folderPath string, duration time.Duration) (videoPath string, err error)
|
RecordScreen(folderPath string, duration time.Duration) (videoPath string, err error)
|
||||||
|
|
||||||
TearDown()
|
TearDown() error
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -356,6 +356,9 @@ func (dev *IOSDevice) Init() error {
|
|||||||
dev.d.UserspaceTUNPort = info.UserspaceTUNPort
|
dev.d.UserspaceTUNPort = info.UserspaceTUNPort
|
||||||
dev.d.UserspaceTUN = info.UserspaceTUN
|
dev.d.UserspaceTUN = info.UserspaceTUN
|
||||||
rsdService, err := ios.NewWithAddrPortDevice(info.Address, info.RsdPort, dev.d)
|
rsdService, err := ios.NewWithAddrPortDevice(info.Address, info.RsdPort, dev.d)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
defer rsdService.Close()
|
defer rsdService.Close()
|
||||||
rsdProvider, err := rsdService.Handshake()
|
rsdProvider, err := rsdService.Handshake()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -997,9 +997,10 @@ func (wd *wdaDriver) GetDriverResults() []*DriverResult {
|
|||||||
return wd.Driver.driverResults
|
return wd.Driver.driverResults
|
||||||
}
|
}
|
||||||
|
|
||||||
func (wd *wdaDriver) TearDown() {
|
func (wd *wdaDriver) TearDown() error {
|
||||||
wd.mjpegClient.CloseIdleConnections()
|
wd.mjpegClient.CloseIdleConnections()
|
||||||
wd.client.CloseIdleConnections()
|
wd.client.CloseIdleConnections()
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type rawResponse []byte
|
type rawResponse []byte
|
||||||
|
|||||||
@@ -537,9 +537,9 @@ func (s *stubIOSDriver) LogoutNoneUI(packageName string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *stubIOSDriver) TearDown() {
|
func (s *stubIOSDriver) TearDown() error {
|
||||||
s.Driver.client.CloseIdleConnections()
|
s.Driver.client.CloseIdleConnections()
|
||||||
return
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *stubIOSDriver) getLoginAppInfo(packageName string) (info AppLoginInfo, err error) {
|
func (s *stubIOSDriver) getLoginAppInfo(packageName string) (info AppLoginInfo, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user