(t TestCase)
| 98 | } |
| 99 | |
| 100 | func 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 |
| 111 | func (c *CommandUnderTest) GetRetries() int { |