Skip to content

Commit

Permalink
review fixes for tarantool#407 (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nurzhan-saktaganov committed Sep 19, 2024
1 parent e76c795 commit 6051cf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"net"
"regexp"
"time"

"github.com/tarantool/go-iproto"
Expand Down Expand Up @@ -163,10 +164,10 @@ func ExamplePingRequest_Context() {
// Ping a Tarantool instance to check connection.
data, err := conn.Do(req).Get()
fmt.Println("Ping Resp data", data)
fmt.Println("Ping Error", contextDoneErrRegexp.Match([]byte(err.Error())))
fmt.Println("Ping Error", regexp.MustCompile("[0-9]+").ReplaceAllString(err.Error(), "N"))
// Output:
// Ping Resp data []
// Ping Error true
// Ping Error context is done (request ID N)
}

func ExampleSelectRequest() {
Expand Down

0 comments on commit 6051cf8

Please sign in to comment.