mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 05:19:38 +08:00
refactor: split ai related logic to pkg/ai
This commit is contained in:
@@ -260,6 +260,9 @@ func NewActionOptions(opts ...ActionOption) *ActionOptions {
|
||||
for _, option := range opts {
|
||||
option(actionOptions)
|
||||
}
|
||||
if actionOptions.MaxRetryTimes == 0 {
|
||||
actionOptions.MaxRetryTimes = 1
|
||||
}
|
||||
return actionOptions
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package option
|
||||
|
||||
import "github.com/httprunner/funplugin"
|
||||
import (
|
||||
"github.com/httprunner/funplugin"
|
||||
)
|
||||
|
||||
type DriverOptions struct {
|
||||
Capabilities Capabilities
|
||||
|
||||
Reference in New Issue
Block a user