diff --git a/cmd/server_test.go b/cmd/server_test.go index ab1c540df3..7795ada4e1 100644 --- a/cmd/server_test.go +++ b/cmd/server_test.go @@ -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{}) @@ -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) } })