diff options
author | atanarjuat <atanarjuat@example.com> | 2022-05-29 21:27:13 +0200 |
---|---|---|
committer | atanarjuat <atanarjuat@example.com> | 2022-05-29 21:27:13 +0200 |
commit | 8fa1b47e4b4d51a4c8ef2d86dfd5b8677e748741 (patch) | |
tree | 5a996ff525318817eb5da3b1993b387b503c12b3 | |
parent | b11ea3bf0ccf83d9414781e0b02d5947bf14b98f (diff) |
fix test
-rw-r--r-- | obfsvpn_test.go | 5 |
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) } |