@@ -104,7 +104,7 @@ func TestEndToEnd(t *testing.T) {
104104 s .AddResource (resource2 , readHandler )
105105
106106 // Connect the server.
107- ss , err := s .Connect (ctx , st )
107+ ss , err := s .Connect (ctx , st , nil )
108108 if err != nil {
109109 t .Fatal (err )
110110 }
@@ -148,7 +148,7 @@ func TestEndToEnd(t *testing.T) {
148148 c .AddRoots (& Root {URI : "file://" + rootAbs })
149149
150150 // Connect the client.
151- cs , err := c .Connect (ctx , ct )
151+ cs , err := c .Connect (ctx , ct , nil )
152152 if err != nil {
153153 t .Fatal (err )
154154 }
@@ -549,13 +549,13 @@ func basicConnection(t *testing.T, config func(*Server)) (*ServerSession, *Clien
549549 if config != nil {
550550 config (s )
551551 }
552- ss , err := s .Connect (ctx , st )
552+ ss , err := s .Connect (ctx , st , nil )
553553 if err != nil {
554554 t .Fatal (err )
555555 }
556556
557557 c := NewClient (testImpl , nil )
558- cs , err := c .Connect (ctx , ct )
558+ cs , err := c .Connect (ctx , ct , nil )
559559 if err != nil {
560560 t .Fatal (err )
561561 }
@@ -598,7 +598,7 @@ func TestBatching(t *testing.T) {
598598 ct , st := NewInMemoryTransports ()
599599
600600 s := NewServer (testImpl , nil )
601- _ , err := s .Connect (ctx , st )
601+ _ , err := s .Connect (ctx , st , nil )
602602 if err != nil {
603603 t .Fatal (err )
604604 }
@@ -608,7 +608,7 @@ func TestBatching(t *testing.T) {
608608 // 'initialize' to block. Therefore, we can only test with a size of 1.
609609 // Since batching is being removed, we can probably just delete this.
610610 const batchSize = 1
611- cs , err := c .Connect (ctx , ct )
611+ cs , err := c .Connect (ctx , ct , nil )
612612 if err != nil {
613613 t .Fatal (err )
614614 }
@@ -668,7 +668,7 @@ func TestMiddleware(t *testing.T) {
668668 ct , st := NewInMemoryTransports ()
669669
670670 s := NewServer (testImpl , nil )
671- ss , err := s .Connect (ctx , st )
671+ ss , err := s .Connect (ctx , st , nil )
672672 if err != nil {
673673 t .Fatal (err )
674674 }
@@ -695,7 +695,7 @@ func TestMiddleware(t *testing.T) {
695695 c .AddSendingMiddleware (traceCalls [* ClientSession ](& cbuf , "S1" ), traceCalls [* ClientSession ](& cbuf , "S2" ))
696696 c .AddReceivingMiddleware (traceCalls [* ClientSession ](& cbuf , "R1" ), traceCalls [* ClientSession ](& cbuf , "R2" ))
697697
698- cs , err := c .Connect (ctx , ct )
698+ cs , err := c .Connect (ctx , ct , nil )
699699 if err != nil {
700700 t .Fatal (err )
701701 }
@@ -777,13 +777,13 @@ func TestNoJSONNull(t *testing.T) {
777777 ct = NewLoggingTransport (ct , & logbuf )
778778
779779 s := NewServer (testImpl , nil )
780- ss , err := s .Connect (ctx , st )
780+ ss , err := s .Connect (ctx , st , nil )
781781 if err != nil {
782782 t .Fatal (err )
783783 }
784784
785785 c := NewClient (testImpl , nil )
786- cs , err := c .Connect (ctx , ct )
786+ cs , err := c .Connect (ctx , ct , nil )
787787 if err != nil {
788788 t .Fatal (err )
789789 }
@@ -845,7 +845,7 @@ func TestKeepAlive(t *testing.T) {
845845 s := NewServer (testImpl , serverOpts )
846846 AddTool (s , greetTool (), sayHi )
847847
848- ss , err := s .Connect (ctx , st )
848+ ss , err := s .Connect (ctx , st , nil )
849849 if err != nil {
850850 t .Fatal (err )
851851 }
@@ -855,7 +855,7 @@ func TestKeepAlive(t *testing.T) {
855855 KeepAlive : 100 * time .Millisecond ,
856856 }
857857 c := NewClient (testImpl , clientOpts )
858- cs , err := c .Connect (ctx , ct )
858+ cs , err := c .Connect (ctx , ct , nil )
859859 if err != nil {
860860 t .Fatal (err )
861861 }
@@ -889,7 +889,7 @@ func TestKeepAliveFailure(t *testing.T) {
889889 // Server without keepalive (to test one-sided keepalive)
890890 s := NewServer (testImpl , nil )
891891 AddTool (s , greetTool (), sayHi )
892- ss , err := s .Connect (ctx , st )
892+ ss , err := s .Connect (ctx , st , nil )
893893 if err != nil {
894894 t .Fatal (err )
895895 }
@@ -899,7 +899,7 @@ func TestKeepAliveFailure(t *testing.T) {
899899 KeepAlive : 50 * time .Millisecond ,
900900 }
901901 c := NewClient (testImpl , clientOpts )
902- cs , err := c .Connect (ctx , ct )
902+ cs , err := c .Connect (ctx , ct , nil )
903903 if err != nil {
904904 t .Fatal (err )
905905 }
0 commit comments