Skip to content

Commit

Permalink
Fixing up binprot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottMansfield committed Apr 13, 2017
1 parent fabe02a commit 570a6ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions protocol/binprot/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func (d dummyIO) Write(p []byte) (int, error) {
}

var (
reqHeaderBenchmarkSink RequestHeader
resHeaderBenchmarkSink ResponseHeader
reqHeaderBenchmarkSink *RequestHeader
resHeaderBenchmarkSink *ResponseHeader
errBenchmarkSink error
)

Expand All @@ -71,7 +71,7 @@ func BenchmarkHeaders(b *testing.B) {
}
})
b.Run("writeRequestHeader", func(b *testing.B) {
temp := RequestHeader{}
temp := &RequestHeader{}
for i := 0; i < b.N; i++ {
errBenchmarkSink = writeRequestHeader(dummyIO{}, temp)
}
Expand All @@ -82,7 +82,7 @@ func BenchmarkHeaders(b *testing.B) {
}
})
b.Run("writeResponseHeader", func(b *testing.B) {
temp := ResponseHeader{}
temp := &ResponseHeader{}
for i := 0; i < b.N; i++ {
errBenchmarkSink = writeResponseHeader(dummyIO{}, temp)
}
Expand Down

0 comments on commit 570a6ac

Please sign in to comment.