Skip to content

Commit 78708db

Browse files
committed
Carry over some changes from #26
1 parent c7dd669 commit 78708db

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.1
22

33
references:
44
  images:
5-
    go: &GOLANG_IMAGE circleci/golang:latest
5+
    go: &GOLANG_IMAGE circleci/golang:1.13
66
  environments:
77
    tmp: &TEST_RESULTS_PATH /tmp/test-results # path to where test results are saved
88

prefix_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ func TestPrefix_NilError(t *testing.T) {
2727
func TestPrefix_NonError(t *testing.T) {
2828
original := errors.New("foo")
2929
result := Prefix(original, "bar")
30+
if result == nil {
31+
t.Fatal("error result was nil")
32+
}
3033
if result.Error() != "bar foo" {
3134
t.Fatalf("bad: %s", result)
3235
}

0 commit comments

Comments
 (0)