aboutsummaryrefslogtreecommitdiff
path: root/config/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/config_test.go')
-rw-r--r--config/config_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/config_test.go b/config/config_test.go
index 6fce23b..20f0a1e 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -4,24 +4,24 @@ import (
"testing"
)
-const SCHEMA_PATH string = "../config_schema.json"
+const schemaPath string = "../config_schema.json"
func TestNoConfig(t *testing.T) {
- _, err := ReadConfig("../test/sfklase.yml", SCHEMA_PATH)
+ _, err := ReadConfig("../test/sfklase.yml", schemaPath)
if err == nil {
t.Errorf("Non-existent config was successfully read")
}
}
func TestGoodConfig(t *testing.T) {
- _, err := ReadConfig("../test/good_config.yml", SCHEMA_PATH)
+ _, err := ReadConfig("../test/good_config.yml", schemaPath)
if err != nil {
t.Errorf("Good config is not accepted: %v", err)
}
}
func TestBadConfig(t *testing.T) {
- _, err := ReadConfig("../test/bad_config.yml", SCHEMA_PATH)
+ _, err := ReadConfig("../test/bad_config.yml", schemaPath)
if err == nil {
t.Errorf("Bad config is accepted but it shouldn't!")
} else {