From 1a90afcf5f813fe7785efb81fc4dfcab9948548a Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 17 Feb 2018 10:50:54 -0200 Subject: [PATCH] chore: compile with go1.10 (#560) * chore: compile with go1.10 * chore: fix? * chore: fix ci, maybe? * chore: fix ci, maybe? * test: fixed broken test --- .travis.yml | 2 +- pipeline/artifactory/artifactory_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 750e4d412..be00b5db6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ dist: trusty sudo: required language: go -go: 1.9 +go: '1.10' services: - docker install: diff --git a/pipeline/artifactory/artifactory_test.go b/pipeline/artifactory/artifactory_test.go index f5f806246..367814abf 100644 --- a/pipeline/artifactory/artifactory_test.go +++ b/pipeline/artifactory/artifactory_test.go @@ -50,7 +50,6 @@ func testHeader(t *testing.T, r *http.Request, header string, want string) { // TODO: improve all tests bellow by checking wether the mocked handlers // were called or not. - func TestRunPipe_ModeBinary(t *testing.T) { setup() defer teardown() @@ -337,7 +336,7 @@ func TestRunPipe_ArtifactoryDown(t *testing.T) { }) err = Pipe{}.Run(ctx) assert.Error(t, err) - assert.Contains(t, err.Error(), ":1234: getsockopt: connection refused") + assert.Contains(t, err.Error(), "connection refused") } func TestRunPipe_TargetTemplateError(t *testing.T) {