@@ -48,7 +48,7 @@ type Member struct {
48
48
Val uint
49
49
}
50
50
51
- var contextDoneErrRegexp = regexp .MustCompile (`^context is done \(request ID [0-9]+\)$` )
51
+ var contextDoneErrRegexp = regexp .MustCompile (`^context is done \(request ID [0-9]+\):.+ $` )
52
52
53
53
func (m * Member ) EncodeMsgpack (e * msgpack.Encoder ) error {
54
54
if err := e .EncodeArrayLen (2 ); err != nil {
@@ -89,8 +89,8 @@ var indexNo = uint32(0)
89
89
var indexName = "primary"
90
90
var opts = Opts {
91
91
Timeout : 5 * time .Second ,
92
- //Concurrency: 32,
93
- //RateLimit: 4*1024,
92
+ // Concurrency: 32,
93
+ // RateLimit: 4*1024,
94
94
}
95
95
96
96
const N = 500
@@ -888,7 +888,7 @@ func TestFutureMultipleGetTypedWithError(t *testing.T) {
888
888
}
889
889
}
890
890
891
- ///////////////////
891
+ // /////////////////
892
892
893
893
func TestClient (t * testing.T ) {
894
894
var err error
@@ -2716,7 +2716,7 @@ func TestCallRequest(t *testing.T) {
2716
2716
func TestClientRequestObjectsWithNilContext (t * testing.T ) {
2717
2717
conn := test_helpers .ConnectWithValidation (t , dialer , opts )
2718
2718
defer conn .Close ()
2719
- req := NewPingRequest ().Context (nil ) //nolint
2719
+ req := NewPingRequest ().Context (nil ) // nolint
2720
2720
data , err := conn .Do (req ).Get ()
2721
2721
if err != nil {
2722
2722
t .Fatalf ("Failed to Ping: %s" , err )
@@ -3269,7 +3269,7 @@ func TestClientIdRequestObjectWithNilContext(t *testing.T) {
3269
3269
req := NewIdRequest (ProtocolInfo {
3270
3270
Version : ProtocolVersion (1 ),
3271
3271
Features : []iproto.Feature {iproto .IPROTO_FEATURE_STREAMS },
3272
- }).Context (nil ) //nolint
3272
+ }).Context (nil ) // nolint
3273
3273
data , err := conn .Do (req ).Get ()
3274
3274
require .Nilf (t , err , "No errors on Id request execution" )
3275
3275
require .NotNilf (t , data , "Response data not empty" )
@@ -3293,7 +3293,7 @@ func TestClientIdRequestObjectWithPassedCanceledContext(t *testing.T) {
3293
3293
req := NewIdRequest (ProtocolInfo {
3294
3294
Version : ProtocolVersion (1 ),
3295
3295
Features : []iproto.Feature {iproto .IPROTO_FEATURE_STREAMS },
3296
- }).Context (ctx ) //nolint
3296
+ }).Context (ctx ) // nolint
3297
3297
cancel ()
3298
3298
resp , err := conn .Do (req ).Get ()
3299
3299
require .Nilf (t , resp , "Response is empty" )
0 commit comments