diff options
Diffstat (limited to 'libgo/go/net/timeout_test.go')
-rw-r--r-- | libgo/go/net/timeout_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgo/go/net/timeout_test.go b/libgo/go/net/timeout_test.go index 2c2c36fff5e..3c884ca7cfe 100644 --- a/libgo/go/net/timeout_test.go +++ b/libgo/go/net/timeout_test.go @@ -5,7 +5,6 @@ package net import ( - "os" "runtime" "testing" "time" @@ -22,7 +21,7 @@ func testTimeout(t *testing.T, network, addr string, readFrom bool) { fd.SetReadTimeout(1e8) // 100ms var b [100]byte var n int - var err1 os.Error + var err1 error if readFrom { n, _, err1 = fd.(PacketConn).ReadFrom(b[0:]) } else { |