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:
parent
c6c82c1308
commit
ffe11c1965
1 changed files with 6 additions and 7 deletions
|
|
@ -7,12 +7,6 @@ import (
|
|||
)
|
||||
|
||||
func Test_LoadConfig(t *testing.T) {
|
||||
|
||||
testUser := User{
|
||||
Name: "foo",
|
||||
Password: "bar",
|
||||
}
|
||||
|
||||
testConfig := Config{
|
||||
Sensors: []Sensor{
|
||||
Sensor{
|
||||
|
|
@ -29,7 +23,12 @@ func Test_LoadConfig(t *testing.T) {
|
|||
Verbose: true,
|
||||
},
|
||||
},
|
||||
Users: []User{testUser},
|
||||
Users: []User{
|
||||
User{
|
||||
Name: "foo",
|
||||
Password: "bar",
|
||||
},
|
||||
},
|
||||
BaseURL: "https://foo.bar",
|
||||
ListenAddr: "127.0.0.1:8080",
|
||||
DisplayFahrenheit: true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue