File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -600,10 +600,10 @@ func TestClientConn_Ping(t *testing.T) {
600600 err = cc .Ping (ctx )
601601 require .NoError (t , err )
602602
603- ctx , cancel = context .WithTimeout (context .Background (), time .Millisecond * 4 )
603+ ctx , cancel = context .WithTimeout (context .Background (), time .Microsecond * 20 )
604604 defer cancel ()
605605 err = cc .Ping (ctx )
606- require .NoError (t , err )
606+ require .Error (t , err )
607607}
608608
609609func TestClientConn_HandeShakeFailure (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -478,8 +478,8 @@ func TestClientConn_Ping(t *testing.T) {
478478 err = cc .Ping (ctx )
479479 require .NoError (t , err )
480480
481- ctx , cancel = context .WithTimeout (context .Background (), time .Millisecond * 4 )
481+ ctx , cancel = context .WithTimeout (context .Background (), time .Microsecond * 20 )
482482 defer cancel ()
483483 err = cc .Ping (ctx )
484- require .NoError (t , err )
484+ require .Error (t , err )
485485}
Original file line number Diff line number Diff line change @@ -553,8 +553,8 @@ func TestClientConn_Ping(t *testing.T) {
553553 err = cc .Ping (ctx )
554554 require .NoError (t , err )
555555
556- ctx , cancel = context .WithTimeout (context .Background (), time .Millisecond * 4 )
556+ ctx , cancel = context .WithTimeout (context .Background (), time .Microsecond * 20 )
557557 defer cancel ()
558558 err = cc .Ping (ctx )
559- require .NoError (t , err )
559+ require .Error (t , err )
560560}
You can’t perform that action at this time.
0 commit comments