We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e76c795 commit 6051cf8Copy full SHA for 6051cf8
example_test.go
@@ -4,6 +4,7 @@ import (
4
"context"
5
"fmt"
6
"net"
7
+ "regexp"
8
"time"
9
10
"github.com/tarantool/go-iproto"
@@ -163,10 +164,10 @@ func ExamplePingRequest_Context() {
163
164
// Ping a Tarantool instance to check connection.
165
data, err := conn.Do(req).Get()
166
fmt.Println("Ping Resp data", data)
- fmt.Println("Ping Error", contextDoneErrRegexp.Match([]byte(err.Error())))
167
+ fmt.Println("Ping Error", regexp.MustCompile("[0-9]+").ReplaceAllString(err.Error(), "N"))
168
// Output:
169
// Ping Resp data []
- // Ping Error true
170
+ // Ping Error context is done (request ID N)
171
}
172
173
func ExampleSelectRequest() {
0 commit comments