Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use go 1.13.x to build go-multierror #26

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -3,10 +3,10 @@ sudo: false
language: go

go:
- 1.x
- 1.13.x

branches:
only:
- master

script: env GO111MODULE=on make test testrace
script: make test testrace
2 changes: 2 additions & 0 deletions go.mod
@@ -1,3 +1,5 @@
module github.com/hashicorp/go-multierror

require github.com/hashicorp/errwrap v1.0.0

go 1.13
3 changes: 3 additions & 0 deletions prefix_test.go
Expand Up @@ -27,6 +27,9 @@ func TestPrefix_NilError(t *testing.T) {
func TestPrefix_NonError(t *testing.T) {
original := errors.New("foo")
result := Prefix(original, "bar")
if result == nil {
t.Fatal("error result was nil")
}
if result.Error() != "bar foo" {
t.Fatalf("bad: %s", result)
}
Expand Down