(frequency int)
| 452 | } |
| 453 | |
| 454 | func AutomaticallyTestChannels(frequency int) { |
| 455 | if frequency <= 0 { |
| 456 | common.SysLog("CHANNEL_TEST_FREQUENCY is not set or invalid, skipping automatic channel test") |
| 457 | return |
| 458 | } |
| 459 | for { |
| 460 | time.Sleep(time.Duration(frequency) * time.Minute) |
| 461 | common.SysLog("testing all channels") |
| 462 | _ = testAllChannels(false) |
| 463 | common.SysLog("channel test finished") |
| 464 | } |
| 465 | } |
no test coverage detected