From f80889861e5b876c7a86038f77d14db405fdee47 Mon Sep 17 00:00:00 2001 From: Luke Massa Date: Sun, 17 Dec 2023 13:42:00 -0500 Subject: [PATCH] Better verbiage --- cmd/server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } })