summaryrefslogtreecommitdiff
path: root/obfsvpn_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'obfsvpn_test.go')
-rw-r--r--obfsvpn_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/obfsvpn_test.go b/obfsvpn_test.go
index c627500..9598217 100644
--- a/obfsvpn_test.go
+++ b/obfsvpn_test.go
@@ -4,7 +4,6 @@ import (
"context"
"io"
"testing"
- "time"
"gitlab.com/yawning/obfs4.git/common/ntor"
@@ -60,13 +59,11 @@ func TestRoundTrip(t *testing.T) {
t.Fatalf("error accepting connection: %v", err)
default:
}
- ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
- defer cancel()
d := obfsvpn.Dialer{
NodeID: nodeID,
PublicKey: pair.Public(),
}
- conn, err := d.Dial(ctx, "tcp", ln.Addr().String())
+ conn, err := d.Dial("tcp", ln.Addr().String())
if err != nil {
t.Fatalf("error dialing connection: %v", err)
}