app/vmalert/config: fix flacky test TestParseBad

It could return either `failed to read` or `failed to parse` errors depending
on whether the given url can be loaded or not under the current environment
This commit is contained in:
Aliaksandr Valialkin 2023-10-25 21:30:38 +02:00
parent 42dd71bb63
commit cb34d4440c
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -106,7 +106,7 @@ func TestParseBad(t *testing.T) {
},
{
[]string{"http://unreachable-url"},
"failed to read",
"failed to",
},
}
for _, tc := range testCases {