fix test typo

This commit is contained in:
Phil Nichol 2023-01-06 14:58:27 +00:00
parent 370ce37d58
commit 9fa10eeb85
No known key found for this signature in database
GPG key ID: 998C1F11E05F7B14

View file

@ -96,7 +96,7 @@ func TestParseAnnotations(t *testing.T) {
"test parse a malicious escaped string": {
net: `10.0.0.0/8"rm /tmp",11.0.0.0/8`,
expectErr: true,
errOut: "the annotation does not contain a valid IP address or network: invalid CIDR address: ",
errOut: `the annotation does not contain a valid IP address or network: invalid CIDR address: 10.0.0.0/8"rm /tmp"`,
},
"test parse multiple valid cidr": {
net: "2.2.2.2/32,1.1.1.1/32,3.3.3.0/24",