Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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