We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7dd669 commit 78708dbCopy full SHA for 78708db
.circleci/config.yml
@@ -2,7 +2,7 @@ version: 2.1
2
3
references:
4
images:
5
- go: &GOLANG_IMAGE circleci/golang:latest
+ go: &GOLANG_IMAGE circleci/golang:1.13
6
environments:
7
tmp: &TEST_RESULTS_PATH /tmp/test-results # path to where test results are saved
8
prefix_test.go
@@ -27,6 +27,9 @@ func TestPrefix_NilError(t *testing.T) {
27
func TestPrefix_NonError(t *testing.T) {
28
original := errors.New("foo")
29
result := Prefix(original, "bar")
30
+ if result == nil {
31
+ t.Fatal("error result was nil")
32
+ }
33
if result.Error() != "bar foo" {
34
t.Fatalf("bad: %s", result)
35
}
0 commit comments