mirror of
https://github.com/shouptech/tempgopher.git
synced 2026-02-03 16:49:42 +00:00
Make config_test.go look more consistent
This commit is contained in:
parent
c6c82c1308
commit
ffe11c1965
1 changed files with 6 additions and 7 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue