aboutsummaryrefslogtreecommitdiff
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.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/libgo/go/net/conn_test.go b/libgo/go/net/conn_test.go
index 45e271c..d168dda 100644
--- a/libgo/go/net/conn_test.go
+++ b/libgo/go/net/conn_test.go
@@ -6,7 +6,6 @@
// tag.
//go:build !js
-// +build !js
package net
@@ -18,7 +17,7 @@ import (
// someTimeout is used just to test that net.Conn implementations
// don't explode when their SetFooDeadline methods are called.
// It isn't actually used for testing timeouts.
-const someTimeout = 10 * time.Second
+const someTimeout = 1 * time.Hour
func TestConnAndListener(t *testing.T) {
for i, network := range []string{"tcp", "unix", "unixpacket"} {
@@ -27,10 +26,7 @@ func TestConnAndListener(t *testing.T) {
continue
}
- ls, err := newLocalServer(network)
- if err != nil {
- t.Fatal(err)
- }
+ ls := newLocalServer(t, network)
defer ls.teardown()
ch := make(chan error, 1)
handler := func(ls *localServer, ln Listener) { ls.transponder(ln, ch) }