This commit is contained in:
李子铭 2024-10-28 11:41:25 +08:00
parent 007f2c462b
commit 46c6f2423b
1 changed files with 9 additions and 0 deletions

View File

@ -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 {