test
This commit is contained in:
parent
007f2c462b
commit
46c6f2423b
|
@ -65,6 +65,15 @@ func TestQuery(t *testing.T) {
|
|||
Extra: nil,
|
||||
},
|
||||
}
|
||||
requestString := request.String()
|
||||
index := strings.Index(requestString, "order:")
|
||||
if index == -1 {
|
||||
fmt.Println("order: not found in the string")
|
||||
return
|
||||
}
|
||||
trimmedResult := requestString[index+len("order:"):]
|
||||
fmt.Println(trimmedResult)
|
||||
|
||||
t.Run("TestQuery", func(t *testing.T) {
|
||||
got, err := zltx.Query(context.Background(), request)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue