plugin/file: shutdown reload goroutine (#1571)
* plugin/file: shutdown reload goroutine Shutdown the z.Reload() routine (if started in the first place) on shutdow and reload. Fixes #1508 * Must be put in c.OnShutdown() * up test coverage
This commit is contained in:
parent
6bb08ffee4
commit
4f3dc207a4
6 changed files with 32 additions and 5 deletions
|
@ -53,6 +53,20 @@ func TestFileParse(t *testing.T) {
|
|||
false,
|
||||
Zones{Names: []string{"10.in-addr.arpa."}},
|
||||
},
|
||||
{
|
||||
`file ` + zoneFileName1 + ` example.net. {
|
||||
upstream a
|
||||
}`,
|
||||
true,
|
||||
Zones{Names: []string{}},
|
||||
},
|
||||
{
|
||||
`file ` + zoneFileName1 + ` example.net. {
|
||||
no_rebloat
|
||||
}`,
|
||||
true,
|
||||
Zones{Names: []string{}},
|
||||
},
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue