Skip to content

Commit

Permalink
optimize benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasen committed Dec 3, 2015
1 parent 292a8a4 commit 468a485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var (
_echoServerAddr = []byte("127.0.0.1:62863")
_expectAESCiphertext = []byte("U2FsdGVkX19KIJ9OQJKT/yHGMrS+5SsBAAjetomptQ0=")
_secret = []byte("p0S8rX680*48")
_defaultFrontdAddr = "127.0.0.1:" + strconv.Itoa(_DefaultPort)
)

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

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

0 comments on commit 468a485

Please sign in to comment.