@@ -1005,7 +1005,7 @@ func TestDoStreamRecycle(t *testing.T) {
10051005 go func () {
10061006 mock .Expect ("PING" ).ReplyString ("OK" )
10071007 }()
1008- conns := newPool (1 , nil , nil )
1008+ conns := newPool (1 , nil , 0 , 0 , nil )
10091009 s := p .DoStream (context .Background (), conns , cmds .NewCompleted ([]string {"PING" }))
10101010 buf := bytes .NewBuffer (nil )
10111011 if err := s .Error (); err != nil {
@@ -1058,7 +1058,7 @@ func TestDoStreamRecycleDestinationFull(t *testing.T) {
10581058 go func () {
10591059 mock .Expect ("PING" ).ReplyBlobString ("OK" )
10601060 }()
1061- conns := newPool (1 , nil , nil )
1061+ conns := newPool (1 , nil , 0 , 0 , nil )
10621062 s := p .DoStream (context .Background (), conns , cmds .NewCompleted ([]string {"PING" }))
10631063 buf := & limitedbuffer {buf : make ([]byte , 1 )}
10641064 if err := s .Error (); err != nil {
@@ -1091,7 +1091,7 @@ func TestDoMultiStreamRecycle(t *testing.T) {
10911091 go func () {
10921092 mock .Expect ("PING" ).Expect ("PING" ).ReplyString ("OK" ).ReplyString ("OK" )
10931093 }()
1094- conns := newPool (1 , nil , nil )
1094+ conns := newPool (1 , nil , 0 , 0 , nil )
10951095 s := p .DoMultiStream (context .Background (), conns , cmds .NewCompleted ([]string {"PING" }), cmds .NewCompleted ([]string {"PING" }))
10961096 buf := bytes .NewBuffer (nil )
10971097 if err := s .Error (); err != nil {
@@ -1124,7 +1124,7 @@ func TestDoMultiStreamRecycleDestinationFull(t *testing.T) {
11241124 go func () {
11251125 mock .Expect ("PING" ).Expect ("PING" ).ReplyBlobString ("OK" ).ReplyBlobString ("OK" )
11261126 }()
1127- conns := newPool (1 , nil , nil )
1127+ conns := newPool (1 , nil , 0 , 0 , nil )
11281128 s := p .DoMultiStream (context .Background (), conns , cmds .NewCompleted ([]string {"PING" }), cmds .NewCompleted ([]string {"PING" }))
11291129 buf := & limitedbuffer {buf : make ([]byte , 1 )}
11301130 if err := s .Error (); err != nil {
@@ -3569,7 +3569,7 @@ func TestAlreadyCanceledContext(t *testing.T) {
35693569 t .Fatalf ("unexpected err %v" , err )
35703570 }
35713571
3572- cp := newPool (1 , nil , nil )
3572+ cp := newPool (1 , nil , 0 , 0 , nil )
35733573 if s := p .DoStream (ctx , cp , cmds .NewCompleted ([]string {"GET" , "a" })); ! errors .Is (s .Error (), context .Canceled ) {
35743574 t .Fatalf ("unexpected err %v" , s .Error ())
35753575 }
@@ -3614,7 +3614,7 @@ func TestCancelContext_DoStream(t *testing.T) {
36143614 ctx , cancel := context .WithTimeout (context .Background (), time .Millisecond * 50 )
36153615 defer cancel ()
36163616
3617- cp := newPool (1 , nil , nil )
3617+ cp := newPool (1 , nil , 0 , 0 , nil )
36183618 s := p .DoStream (ctx , cp , cmds .NewCompleted ([]string {"GET" , "a" }))
36193619 if err := s .Error (); err != io .EOF && ! strings .Contains (err .Error (), "i/o" ) {
36203620 t .Fatalf ("unexpected err %v" , err )
@@ -3631,7 +3631,7 @@ func TestWriteDeadlineIsShorterThanContextDeadline_DoStream(t *testing.T) {
36313631 ctx , cancel := context .WithTimeout (context .Background (), time .Second )
36323632 defer cancel ()
36333633
3634- cp := newPool (1 , nil , nil )
3634+ cp := newPool (1 , nil , 0 , 0 , nil )
36353635 startTime := time .Now ()
36363636 s := p .DoStream (ctx , cp , cmds .NewCompleted ([]string {"GET" , "a" }))
36373637 if err := s .Error (); err != io .EOF && ! strings .Contains (err .Error (), "i/o" ) {
@@ -3652,7 +3652,7 @@ func TestWriteDeadlineIsNoShorterThanContextDeadline_DoStreamBlocked(t *testing.
36523652 ctx , cancel := context .WithTimeout (context .Background (), 100 * time .Millisecond )
36533653 defer cancel ()
36543654
3655- cp := newPool (1 , nil , nil )
3655+ cp := newPool (1 , nil , 0 , 0 , nil )
36563656 startTime := time .Now ()
36573657 s := p .DoStream (ctx , cp , cmds .NewBlockingCompleted ([]string {"BLPOP" , "a" }))
36583658 if err := s .Error (); err != io .EOF && ! strings .Contains (err .Error (), "i/o" ) {
@@ -3727,7 +3727,7 @@ func TestCancelContext_DoMultiStream(t *testing.T) {
37273727 ctx , cancel := context .WithTimeout (context .Background (), time .Millisecond * 50 )
37283728 defer cancel ()
37293729
3730- cp := newPool (1 , nil , nil )
3730+ cp := newPool (1 , nil , 0 , 0 , nil )
37313731 s := p .DoMultiStream (ctx , cp , cmds .NewCompleted ([]string {"GET" , "a" }))
37323732 if err := s .Error (); err != io .EOF && ! strings .Contains (err .Error (), "i/o" ) {
37333733 t .Fatalf ("unexpected err %v" , err )
@@ -3744,7 +3744,7 @@ func TestWriteDeadlineIsShorterThanContextDeadline_DoMultiStream(t *testing.T) {
37443744 ctx , cancel := context .WithTimeout (context .Background (), time .Second )
37453745 defer cancel ()
37463746
3747- cp := newPool (1 , nil , nil )
3747+ cp := newPool (1 , nil , 0 , 0 , nil )
37483748 startTime := time .Now ()
37493749 s := p .DoMultiStream (ctx , cp , cmds .NewCompleted ([]string {"GET" , "a" }))
37503750 if err := s .Error (); err != io .EOF && ! strings .Contains (err .Error (), "i/o" ) {
@@ -3765,7 +3765,7 @@ func TestWriteDeadlineIsNoShorterThanContextDeadline_DoMultiStreamBlocked(t *tes
37653765 ctx , cancel := context .WithTimeout (context .Background (), 100 * time .Millisecond )
37663766 defer cancel ()
37673767
3768- cp := newPool (1 , nil , nil )
3768+ cp := newPool (1 , nil , 0 , 0 , nil )
37693769 startTime := time .Now ()
37703770 s := p .DoMultiStream (ctx , cp , cmds .NewBlockingCompleted ([]string {"BLPOP" , "a" }))
37713771 if err := s .Error (); err != io .EOF && ! strings .Contains (err .Error (), "i/o" ) {
@@ -3797,7 +3797,7 @@ func TestTimeout_DoStream(t *testing.T) {
37973797 defer ShouldNotLeaked (SetupLeakDetection ())
37983798 p , _ , _ , _ := setup (t , ClientOption {ConnWriteTimeout : time .Millisecond * 30 })
37993799
3800- cp := newPool (1 , nil , nil )
3800+ cp := newPool (1 , nil , 0 , 0 , nil )
38013801
38023802 s := p .DoStream (context .Background (), cp , cmds .NewCompleted ([]string {"GET" , "a" }))
38033803 if err := s .Error (); err != io .EOF && ! strings .Contains (err .Error (), "i/o" ) {
@@ -3817,7 +3817,7 @@ func TestForceClose_DoStream_Block(t *testing.T) {
38173817 p .Close ()
38183818 }()
38193819
3820- cp := newPool (1 , nil , nil )
3820+ cp := newPool (1 , nil , 0 , 0 , nil )
38213821
38223822 s := p .DoStream (context .Background (), cp , cmds .NewBlockingCompleted ([]string {"GET" , "a" }))
38233823 if s .Error () != nil {
@@ -3874,7 +3874,7 @@ func TestTimeout_DoMultiStream(t *testing.T) {
38743874 defer ShouldNotLeaked (SetupLeakDetection ())
38753875 p , _ , _ , _ := setup (t , ClientOption {ConnWriteTimeout : time .Millisecond * 30 })
38763876
3877- cp := newPool (1 , nil , nil )
3877+ cp := newPool (1 , nil , 0 , 0 , nil )
38783878
38793879 s := p .DoMultiStream (context .Background (), cp , cmds .NewCompleted ([]string {"GET" , "a" }))
38803880 if err := s .Error (); err != io .EOF && ! strings .Contains (err .Error (), "i/o" ) {
@@ -3894,7 +3894,7 @@ func TestForceClose_DoMultiStream_Block(t *testing.T) {
38943894 p .Close ()
38953895 }()
38963896
3897- cp := newPool (1 , nil , nil )
3897+ cp := newPool (1 , nil , 0 , 0 , nil )
38983898
38993899 s := p .DoMultiStream (context .Background (), cp , cmds .NewBlockingCompleted ([]string {"GET" , "a" }))
39003900 if s .Error () != nil {
0 commit comments