mirror of
https://github.com/coredns/coredns.git
synced 2026-03-11 08:13:12 -04:00
plugin/reload: Allow disabling jitter with 0s (#7896)
This PR fixes #7894 by allowing reload 2s 0s as documented. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -22,6 +22,11 @@ func TestSetupReload(t *testing.T) {
|
||||
t.Fatalf("Expected no errors, but got: %v", err)
|
||||
}
|
||||
|
||||
c = caddy.NewTestController("dns", `reload 2s 0s`)
|
||||
if err := setup(c); err != nil {
|
||||
t.Fatalf("Expected no errors, but got: %v", err)
|
||||
}
|
||||
|
||||
c = caddy.NewTestController("dns", `reload foo`)
|
||||
if err := setup(c); err == nil {
|
||||
t.Fatalf("Expected errors, but got: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user