1
0
Fork 0
mirror of https://github.com/shouptech/tempgopher.git synced 2026-02-03 08:39:43 +00:00

Make config_test.go look more consistent

This commit is contained in:
Emma 2018-10-13 19:11:16 -06:00
parent c6c82c1308
commit ffe11c1965

View file

@ -7,12 +7,6 @@ import (
) )
func Test_LoadConfig(t *testing.T) { func Test_LoadConfig(t *testing.T) {
testUser := User{
Name: "foo",
Password: "bar",
}
testConfig := Config{ testConfig := Config{
Sensors: []Sensor{ Sensors: []Sensor{
Sensor{ Sensor{
@ -29,7 +23,12 @@ func Test_LoadConfig(t *testing.T) {
Verbose: true, Verbose: true,
}, },
}, },
Users: []User{testUser}, Users: []User{
User{
Name: "foo",
Password: "bar",
},
},
BaseURL: "https://foo.bar", BaseURL: "https://foo.bar",
ListenAddr: "127.0.0.1:8080", ListenAddr: "127.0.0.1:8080",
DisplayFahrenheit: true, DisplayFahrenheit: true,