Skip to content

Commit

Permalink
Better verbiage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemassa committed Jan 28, 2024
1 parent f114b0b commit f808898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func TestExecute_Flags(t *testing.T) {
}
}

func TestUserConfigNoExtra(t *testing.T) {
func TestUserConfigAllTested(t *testing.T) {
t.Log("All settings in userConfig should be tested.")

u := reflect.TypeOf(server.UserConfig{})
Expand All @@ -236,7 +236,7 @@ func TestUserConfigNoExtra(t *testing.T) {
return
}
if !ok {
t.Errorf("server.UserConfig has field with mapstructure %s that is either not tested, or not in use in server.go", userConfigKey)
t.Errorf("server.UserConfig has field with mapstructure %s that is either not tested. Either add it to server_test.testFlags, or remove it from server.UserConfig", userConfigKey)
}
})

Expand Down

0 comments on commit f808898

Please sign in to comment.