From b6d3133ce342618c0c49fffa2f2c41c43a014868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Thu, 3 Dec 2020 20:28:32 +0100 Subject: [PATCH] Tidy up TestParseShortNameMode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that empty strings are rejected, don't include a valid value in the result. This does not actualy change what is being tested, just makes it a tiny bit more readable. Signed-off-by: Miloslav Trmač --- pkg/sysregistriesv2/system_registries_v2_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sysregistriesv2/system_registries_v2_test.go b/pkg/sysregistriesv2/system_registries_v2_test.go index a45a986404..6555790f40 100644 --- a/pkg/sysregistriesv2/system_registries_v2_test.go +++ b/pkg/sysregistriesv2/system_registries_v2_test.go @@ -589,7 +589,7 @@ func TestParseShortNameMode(t *testing.T) { {"disabled", types.ShortNameModeDisabled, false}, {"enforcing", types.ShortNameModeEnforcing, false}, {"permissive", types.ShortNameModePermissive, false}, - {"", types.ShortNameModePermissive, true}, + {"", -1, true}, {"xxx", -1, true}, }