config_test.go: use COMMENTO_ prefix

This commit is contained in:
Adhityaa 2018-06-07 23:17:23 +05:30
parent 5a7cffb317
commit 1df933c3c0

View File

@ -6,7 +6,7 @@ import (
)
func TestParseConfigBasics(t *testing.T) {
os.Setenv("ORIGIN", "https://commento.io")
os.Setenv("COMMENTO_ORIGIN", "https://commento.io")
if err := parseConfig(); err != nil {
t.Errorf("unexpected error when parsing config: %v", err)
@ -19,7 +19,7 @@ func TestParseConfigBasics(t *testing.T) {
return
}
os.Setenv("PORT", "1886")
os.Setenv("COMMENTO_PORT", "1886")
if err := parseConfig(); err != nil {
t.Errorf("unexpected error when parsing config: %v", err)