aboutsummaryrefslogtreecommitdiff
path: root/config/config_test.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-10-29 04:23:57 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-10-29 04:23:57 +0300
commit7e036fd795cc0b5710d3b049dc98f4538c32da6a (patch)
treea759a474c5c1a3aafb5a44a416ca9989bbf2b1b2 /config/config_test.go
parent695c9fc35325d3bec3ec81bdce59f780acd74e8d (diff)
golint
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 {