fix: fixes for Go 1.14 (#7848)

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
(cherry picked from commit 5f6269d008)
pull/8287/head
Matt Butcher 6 years ago committed by Matt Farina
parent 89bd14c154
commit 288b521d5e
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -243,7 +243,7 @@ func TestErrorFindChartInRepoURL(t *testing.T) {
if err == nil {
t.Errorf("Expected error for bad chart URL, but did not get any errors")
}
if err != nil && !strings.Contains(err.Error(), `Looks like "http://someserver/something" is not a valid chart repository or cannot be reached: Get http://someserver/something/index.yaml`) {
if err != nil && !strings.Contains(err.Error(), `Looks like "http://someserver/something" is not a valid chart repository or cannot be reached`) {
t.Errorf("Expected error for bad chart URL, but got a different error (%v)", err)
}

@ -36,6 +36,7 @@ gometalinter.v1 \
--tests \
--vendor \
--deadline 60s \
--skip proto \
./... || exit_code=1
echo

Loading…
Cancel
Save