mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
api: use COMMENTO_ prefix on errors
Closes https://gitlab.com/commento/commento-ce/issues/44
This commit is contained in:
@ -15,7 +15,7 @@ func TestParseConfigBasics(t *testing.T) {
|
||||
}
|
||||
|
||||
if os.Getenv("BIND_ADDRESS") != "127.0.0.1" {
|
||||
t.Errorf("expected BIND_ADDRESS=127.0.0.1, but BIND_ADDRESS=%s instead", os.Getenv("BIND_ADDRESS"))
|
||||
t.Errorf("expected COMMENTO_BIND_ADDRESS=127.0.0.1, but COMMENTO_BIND_ADDRESS=%s instead", os.Getenv("BIND_ADDRESS"))
|
||||
return
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ func TestParseConfigBasics(t *testing.T) {
|
||||
}
|
||||
|
||||
if os.Getenv("BIND_ADDRESS") != "192.168.1.100" {
|
||||
t.Errorf("expected BIND_ADDRESS=192.168.1.100, but BIND_ADDRESS=%s instead", os.Getenv("BIND_ADDRESS"))
|
||||
t.Errorf("expected COMMENTO_BIND_ADDRESS=192.168.1.100, but COMMENTO_BIND_ADDRESS=%s instead", os.Getenv("BIND_ADDRESS"))
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user