Add some config tests

Still some more to add
This commit is contained in:
Ian Fijolek
2019-10-03 18:16:03 -07:00
parent 71574dd8a9
commit 5c5388d683
6 changed files with 90 additions and 11 deletions
+4 -1
View File
@@ -6,7 +6,10 @@ import (
)
func main() {
config := LoadConfig("config.yml")
config, err := LoadConfig("config.yml")
if err != nil {
log.Fatalf("Error loading config: %v", err)
}
for {
for _, monitor := range config.Monitors {