Skip to content

Commit

Permalink
print memory allocation statistics for benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasen committed Dec 3, 2015
1 parent 4d1e371 commit 292a8a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ script:

after_script:
- $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci
- go test -bench .
- go test -benchmem -bench .
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"math/rand"
"net"
"os"
"strconv"
"testing"
"time"

Expand Down Expand Up @@ -137,7 +138,7 @@ func TestEchoServer(t *testing.T) {

func testProtocol(cipherAddr []byte) {
// * test decryption
conn, err := net.Dial("tcp", "127.0.0.1:"+_DefaultPort)
conn, err := net.Dial("tcp", "127.0.0.1:"+strconv.Itoa(_DefaultPort))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 292a8a4

Please sign in to comment.