mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-30 11:06:37 -04:00
config_test.go: use COMMENTO_ prefix
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestParseConfigBasics(t *testing.T) {
|
func TestParseConfigBasics(t *testing.T) {
|
||||||
os.Setenv("ORIGIN", "https://commento.io")
|
os.Setenv("COMMENTO_ORIGIN", "https://commento.io")
|
||||||
|
|
||||||
if err := parseConfig(); err != nil {
|
if err := parseConfig(); err != nil {
|
||||||
t.Errorf("unexpected error when parsing config: %v", err)
|
t.Errorf("unexpected error when parsing config: %v", err)
|
||||||
@ -19,7 +19,7 @@ func TestParseConfigBasics(t *testing.T) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Setenv("PORT", "1886")
|
os.Setenv("COMMENTO_PORT", "1886")
|
||||||
|
|
||||||
if err := parseConfig(); err != nil {
|
if err := parseConfig(); err != nil {
|
||||||
t.Errorf("unexpected error when parsing config: %v", err)
|
t.Errorf("unexpected error when parsing config: %v", err)
|
||||||
|
Reference in New Issue
Block a user