From 8fa1b47e4b4d51a4c8ef2d86dfd5b8677e748741 Mon Sep 17 00:00:00 2001 From: atanarjuat Date: Sun, 29 May 2022 21:27:13 +0200 Subject: fix test --- obfsvpn_test.go | 5 +---- 1 file changed, 1 insertion(+), 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) } -- cgit v1.2.3