Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Xin <[email protected]>
  • Loading branch information
rim99 committed Dec 21, 2024
1 parent 50ed388 commit f9d81a5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/query/app/http_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,10 @@ func TestGetTraceDedupeSuccess(t *testing.T) {

func TestGetTraceWithTimeWindowSuccess(t *testing.T) {
ts := initializeTestServer(t)
start_time := time.Date(1970, time.January, 1, 0, 0, 0, 1000, time.UTC).Local()
end_time := time.Date(1970, time.January, 1, 0, 0, 0, 2000, time.UTC).Local()
ts.spanReader.On("GetTrace", mock.AnythingOfType("*context.valueCtx"), spanstore.GetTraceParameters{
TraceID: model.TraceID{High: 0, Low: 0x123456},
StartTime: start_time,
EndTime: end_time,
StartTime: time.UnixMicro(1),
EndTime: time.UnixMicro(2),
}).Return(mockTrace, nil).Once()

var response structuredResponse
Expand Down

0 comments on commit f9d81a5

Please sign in to comment.