mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 09:49:33 +08:00
change: set alias WithWaitTime for compatibility
This commit is contained in:
@@ -266,6 +266,9 @@ func WithIndex(index int) ActionOption {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set alias for compatibility
|
||||||
|
var WithWaitTime = WithInterval
|
||||||
|
|
||||||
func WithInterval(sec float64) ActionOption {
|
func WithInterval(sec float64) ActionOption {
|
||||||
return func(o *ActionOptions) {
|
return func(o *ActionOptions) {
|
||||||
o.Interval = sec
|
o.Interval = sec
|
||||||
|
|||||||
Reference in New Issue
Block a user