From 60fb66ecdaf5a46a091b301bf2931d75b9fb6367 Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Tue, 22 Oct 2019 11:03:38 -0700 Subject: [PATCH] use go 1.13.x to build go-multierror --- .travis.yml | 4 ++-- go.mod | 2 ++ prefix_test.go | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 24b8038..8a78a46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/go.mod b/go.mod index 2534331..8c91af6 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module github.com/hashicorp/go-multierror require github.com/hashicorp/errwrap v1.0.0 + +go 1.13 diff --git a/prefix_test.go b/prefix_test.go index 1d4a6f6..849ec3a 100644 --- a/prefix_test.go +++ b/prefix_test.go @@ -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) }