From c7f61f27e2f180f50ab8a9aa2a5d0193b4e9aaab Mon Sep 17 00:00:00 2001 From: rim99 Date: Wed, 20 Nov 2024 20:05:01 +0800 Subject: [PATCH] Pass startTime & endTime in Trace Get request --- cmd/query/app/apiv3/grpc_handler_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/query/app/apiv3/grpc_handler_test.go b/cmd/query/app/apiv3/grpc_handler_test.go index bb3c08d9b59..4b639e6bba9 100644 --- a/cmd/query/app/apiv3/grpc_handler_test.go +++ b/cmd/query/app/apiv3/grpc_handler_test.go @@ -8,6 +8,7 @@ import ( "errors" "net" "testing" + "time" "github.com/gogo/protobuf/types" "github.com/stretchr/testify/assert" @@ -125,6 +126,8 @@ func TestGetTraceTraceIDError(t *testing.T) { getTraceStream, err := tsc.client.GetTrace(context.Background(), &api_v3.GetTraceRequest{ TraceId: "Z", + StartTime: time.Unix(1, 2), + EndTime: time.Unix(3, 4), }) require.NoError(t, err) recv, err := getTraceStream.Recv()