1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00

test: fixed difference between linux and mac errors

This commit is contained in:
Carlos Alexandro Becker 2018-02-14 11:12:23 -02:00 committed by Carlos Alexandro Becker
parent ba58ba05ab
commit db929deb45

View File

@ -331,8 +331,9 @@ func TestRunPipe_ArtifactoryDown(t *testing.T) {
Name: "bin.tar.gz",
Path: tarfile.Name(),
})
assert.EqualError(t, Pipe{}.Run(ctx), `artifactory: upload failed: Put http://localhost:1234/example-repo-local/goreleaser/2.0.0/bin.tar.gz: dial tcp 127.0.0.1:1234: getsockopt: connection refused`)
err = Pipe{}.Run(ctx)
assert.Error(t, err)
assert.Contains(t, err.Error(), ":1234: getsockopt: connection refused")
}
func TestRunPipe_TargetTemplateError(t *testing.T) {