Skip to content

Commit

Permalink
Carry over some changes from #26
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhooker committed Mar 6, 2021
1 parent c7dd669 commit 78708db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -2,7 +2,7 @@ version: 2.1

references:
  images:
    go: &GOLANG_IMAGE circleci/golang:latest
    go: &GOLANG_IMAGE circleci/golang:1.13
  environments:
    tmp: &TEST_RESULTS_PATH /tmp/test-results # path to where test results are saved

Expand Down
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

0 comments on commit 78708db

Please sign in to comment.