Configurable zone reload interval in file plugin (#2110)
* Configurable zone reload interval in file plugin * passing reload config from auto plugin to file plugin. removed noReload property from Zone struct. fixed tests based on short file reload hack
This commit is contained in:
parent
a80ec6096f
commit
552aab723c
12 changed files with 53 additions and 20 deletions
|
@ -29,6 +29,7 @@ func TestZoneReload(t *testing.T) {
|
|||
}
|
||||
|
||||
TickTime = 500 * time.Millisecond
|
||||
z.ReloadInterval = 500 * time.Millisecond
|
||||
z.Reload()
|
||||
time.Sleep(time.Second)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue