From 7848013c7fde5d8482e48d3660e9425a1509b840 Mon Sep 17 00:00:00 2001 From: Dingjun Date: Sat, 8 Apr 2017 11:42:23 +0800 Subject: [PATCH] golint --- conn_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conn_test.go b/conn_test.go index 941327a..2091aec 100644 --- a/conn_test.go +++ b/conn_test.go @@ -88,7 +88,7 @@ func testTimedOutConn(t *testing.T, timeout bool) { } // timeout time - timeout_t := 1 * time.Second + timeout := 1 * time.Second defer l.Close() @@ -102,7 +102,7 @@ func testTimedOutConn(t *testing.T, timeout bool) { defer s.Close() - sConn := TimedOutConn{s, timeout_t} + sConn := TimedOutConn{s, timeout} buf := make([]byte, 100) @@ -112,7 +112,7 @@ func testTimedOutConn(t *testing.T, timeout bool) { } if timeout { - time.Sleep(timeout_t + 1*time.Second) + time.Sleep(timeout + 1*time.Second) } sConn.Write(buf[:n]) @@ -127,7 +127,7 @@ func testTimedOutConn(t *testing.T, timeout bool) { str := "hello, world" - cConn := TimedOutConn{c, timeout_t} + cConn := TimedOutConn{c, timeout} if _, err := cConn.Write([]byte(str)); err != nil { t.Fatalf("client write failed: %s", err)