@@ -424,7 +424,7 @@ func TestHandshakeTimeoutInContext(t *testing.T) {
424
424
425
425
ctx , cancel := context .WithDeadline (context .Background (), time .Now ().Add (30 * time .Second ))
426
426
defer cancel ()
427
- ws , _ , err := d .DialContext (s .URL , nil , ctx )
427
+ ws , _ , err := d .DialContext (ctx , s .URL , nil )
428
428
if err != nil {
429
429
t .Fatal ("Dial:" , err )
430
430
}
@@ -730,7 +730,7 @@ func TestTracingDialWithContext(t *testing.T) {
730
730
d := cstDialer
731
731
d .TLSClientConfig = & tls.Config {RootCAs : certs }
732
732
733
- ws , _ , err := d .DialContext (s .URL , nil , ctx )
733
+ ws , _ , err := d .DialContext (ctx , s .URL , nil )
734
734
if err != nil {
735
735
t .Fatalf ("Dial: %v" , err )
736
736
}
@@ -780,7 +780,7 @@ func TestEmptyTracingDialWithContext(t *testing.T) {
780
780
d := cstDialer
781
781
d .TLSClientConfig = & tls.Config {RootCAs : certs }
782
782
783
- ws , _ , err := d .DialContext (s .URL , nil , ctx )
783
+ ws , _ , err := d .DialContext (ctx , s .URL , nil )
784
784
if err != nil {
785
785
t .Fatalf ("Dial: %v" , err )
786
786
}
0 commit comments