mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
refactor: check feed activity
This commit is contained in:
@@ -386,7 +386,8 @@ func (ad *adbDriver) AssertAppForeground(packageName string) error {
|
||||
return err
|
||||
}
|
||||
if app.PackageName != packageName {
|
||||
return errors.New("app is not in foreground")
|
||||
return fmt.Errorf("%v is not in foreground, current is %v",
|
||||
packageName, app.PackageName)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user