Skip to content

Commit

Permalink
Tidy up TestParseShortNameMode
Browse files Browse the repository at this point in the history
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č <[email protected]>
  • Loading branch information
mtrmac authored and vrothberg committed Dec 4, 2020
1 parent 4f9be6b commit b6d3133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sysregistriesv2/system_registries_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}

Expand Down

0 comments on commit b6d3133

Please sign in to comment.