mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-10-11 03:13:31 +00:00
docs(config): clarify scoped intervals
This commit is contained in:
1 parent
7ac1fc3a7c
commit
30660b95f5
3 files changed
+20
-2
No files matched your search
@@ -42,6 +42,15 @@ func TestConfigExampleYMLParses(t *testing.T) {
|
||||
t.Fatalf("services[%d].AdapterType = %q, want %q", i, services[i].AdapterType, want)
|
||||
}
|
||||
}
|
||||
if services[0].Interval != time.Minute {
|
||||
t.Fatalf("services[0].Interval = %s, want 1m", services[0].Interval)
|
||||
}
|
||||
if services[1].Interval != 30*time.Second {
|
||||
t.Fatalf("services[1].Interval = %s, want 30s", services[1].Interval)
|
||||
}
|
||||
if services[2].Interval != time.Minute {
|
||||
t.Fatalf("services[2].Interval = %s, want 1m", services[2].Interval)
|
||||
}
|
||||
}
|
||||
|
||||
func TestFirstExistingConfigFileFindsYMLFallback(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user