MCPcopy Create free account
hub / github.com/commander-cli/commander / executeRetryInterval

Function executeRetryInterval

pkg/runtime/runner.go:100–108  ·  view source on GitHub ↗
(t TestCase)

Source from the content-addressed store, hash-verified

98}
99
100func executeRetryInterval(t TestCase) {
101 if t.Command.GetRetries() > 1 && t.Command.Interval != "" {
102 interval, err := time.ParseDuration(t.Command.Interval)
103 if err != nil {
104 panic(fmt.Sprintf("'%s' interval error: %s", t.Command.Cmd, err))
105 }
106 time.Sleep(interval)
107 }
108}
109
110// GetRetries returns the retries of the command
111func (c *CommandUnderTest) GetRetries() int {

Callers 1

RunMethod · 0.85

Calls 1

GetRetriesMethod · 0.80

Tested by

no test coverage detected