From 4f3dc207a46a29edd0f36b9242ce59a6c7e104d0 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 28 Feb 2018 18:19:37 -0800 Subject: 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 --- plugin/file/setup_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'plugin/file/setup_test.go') diff --git a/plugin/file/setup_test.go b/plugin/file/setup_test.go index 62e8476f6..39cadaaf2 100644 --- a/plugin/file/setup_test.go +++ b/plugin/file/setup_test.go @@ -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 { -- cgit v1.2.3