mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -04:00
Plugin/RELOAD - Tune usage of var global, add limit to options (#1457)
* tune usage of var global, add limit to options * update readme for minimal values * useless change to quick-off codecov * fix msgs for min values and tune the flag for end of reload usage, with a 'maybe' option * adding UT for min values, adding MD5 of corefile on the log
This commit is contained in:
committed by
John Belamaric
parent
3fb07161b7
commit
2440024772
@@ -36,4 +36,16 @@ func TestSetupReload(t *testing.T) {
|
||||
if err := setup(c); err == nil {
|
||||
t.Fatalf("Expected errors, but got: %v", err)
|
||||
}
|
||||
c = caddy.NewTestController("dns", `reload 1s`)
|
||||
if err := setup(c); err == nil {
|
||||
t.Fatalf("Expected errors, but got: %v", err)
|
||||
}
|
||||
c = caddy.NewTestController("dns", `reload 0s`)
|
||||
if err := setup(c); err == nil {
|
||||
t.Fatalf("Expected errors, but got: %v", err)
|
||||
}
|
||||
c = caddy.NewTestController("dns", `reload 3s 0.5s`)
|
||||
if err := setup(c); err == nil {
|
||||
t.Fatalf("Expected errors, but got: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user