mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-28 02:51:42 +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)
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
func (hd *hdcDriver) TearDown() {
|
||||
func (hd *hdcDriver) TearDown() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -654,5 +654,5 @@ type IWebDriver interface {
|
||||
GetDriverResults() []*DriverResult
|
||||
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.UserspaceTUN = info.UserspaceTUN
|
||||
rsdService, err := ios.NewWithAddrPortDevice(info.Address, info.RsdPort, dev.d)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer rsdService.Close()
|
||||
rsdProvider, err := rsdService.Handshake()
|
||||
if err != nil {
|
||||
|
||||
@@ -997,9 +997,10 @@ func (wd *wdaDriver) GetDriverResults() []*DriverResult {
|
||||
return wd.Driver.driverResults
|
||||
}
|
||||
|
||||
func (wd *wdaDriver) TearDown() {
|
||||
func (wd *wdaDriver) TearDown() error {
|
||||
wd.mjpegClient.CloseIdleConnections()
|
||||
wd.client.CloseIdleConnections()
|
||||
return nil
|
||||
}
|
||||
|
||||
type rawResponse []byte
|
||||
|
||||
@@ -537,9 +537,9 @@ func (s *stubIOSDriver) LogoutNoneUI(packageName string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *stubIOSDriver) TearDown() {
|
||||
func (s *stubIOSDriver) TearDown() error {
|
||||
s.Driver.client.CloseIdleConnections()
|
||||
return
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *stubIOSDriver) getLoginAppInfo(packageName string) (info AppLoginInfo, err error) {
|
||||
|
||||
Reference in New Issue
Block a user