summaryrefslogtreecommitdiff
path: root/libgo/go/net/conn_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/conn_test.go')
-rw-r--r--libgo/go/net/conn_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/net/conn_test.go b/libgo/go/net/conn_test.go
index 6995c110f2..16cf69ee16 100644
--- a/libgo/go/net/conn_test.go
+++ b/libgo/go/net/conn_test.go
@@ -1,4 +1,4 @@
-// Copyright 2012 The Go Authors. All rights reserved.
+// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -43,7 +43,7 @@ func TestConnAndListener(t *testing.T) {
t.Fatal(err)
}
defer c.Close()
- if c.LocalAddr().Network() != network || c.LocalAddr().Network() != network {
+ if c.LocalAddr().Network() != network || c.RemoteAddr().Network() != network {
t.Fatalf("got %s->%s; want %s->%s", c.LocalAddr().Network(), c.RemoteAddr().Network(), network, network)
}
c.SetDeadline(time.Now().Add(someTimeout))