From 46c6f2423b761e2f3e9712d2554637ce99cd3e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Mon, 28 Oct 2024 11:41:25 +0800 Subject: [PATCH] test --- plugins/zltx/internal/zltx_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/zltx/internal/zltx_test.go b/plugins/zltx/internal/zltx_test.go index e760730..fa3e805 100644 --- a/plugins/zltx/internal/zltx_test.go +++ b/plugins/zltx/internal/zltx_test.go @@ -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 {