Skip to content

Commit

Permalink
src: fix go test + vet feedback
Browse files Browse the repository at this point in the history
Fix go vet feedback but change format specifiers for
functions from "%v" to "%p".

Shout-outs to @jean-christophe-manciot for helping
point this out that tips were failing on tip, without
any code changes.
  • Loading branch information
odeke-em committed Dec 19, 2017
1 parent 4c5cee8 commit 07a756f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ sudo: false
language: go
go:
- 1.7
- 1.8
- 1.9
- tip
install:
- go get -t ./...
script:
go test -v -cover ./src/...
go test -v -race -cover ./src/...
4 changes: 2 additions & 2 deletions src/misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestRemoteOpToChangerTranslator(t *testing.T) {
vptr2 := reflect.ValueOf(tc.wantedFn).Pointer()

if vptr1 != vptr2 {
t.Errorf("expected %q expected (%v) got (%v)", tc.name, tc.wantedFn, got)
t.Errorf("expected %q expected (%p) got (%p)", tc.name, tc.wantedFn, got)
}
}
}
Expand Down Expand Up @@ -115,7 +115,7 @@ func TestLocalOpToChangerTranslator(t *testing.T) {
vptr2 := reflect.ValueOf(tc.wantedFn).Pointer()

if vptr1 != vptr2 {
t.Errorf("expected %q expected (%v) got (%v)", tc.name, tc.wantedFn, got)
t.Errorf("expected %q expected (%p) got (%p)", tc.name, tc.wantedFn, got)
}
}
}
Expand Down

0 comments on commit 07a756f

Please sign in to comment.