fix: fixes for Go 1.14 (#7848)

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
pull/7926/head
Matt Butcher 5 years ago committed by GitHub
parent e0604b9306
commit 5f6269d008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -243,7 +243,7 @@ func TestErrorFindChartInRepoURL(t *testing.T) {
if err == nil { if err == nil {
t.Errorf("Expected error for bad chart URL, but did not get any errors") 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) t.Errorf("Expected error for bad chart URL, but got a different error (%v)", err)
} }

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

Loading…
Cancel
Save