File tree Expand file tree Collapse file tree
backend/modules/observability/application Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2017,19 +2017,8 @@ func TestOpenAPIApplication_validateSearchTraceOApiReq(t *testing.T) {
20172017 negativeLimit .Limit = - 1
20182018 assert .Error (t , app .validateSearchTraceOApiReq (ctx , & negativeLimit ))
20192019
2020- // invalid time range (zero values)
2021- invalidTime := * validReq
2022- invalidTime .StartTime = 0
2023- invalidTime .EndTime = 0
2024- assert .Error (t , app .validateSearchTraceOApiReq (ctx , & invalidTime ))
2025-
20262020 // valid request should pass
20272021 assert .NoError (t , app .validateSearchTraceOApiReq (ctx , validReq ))
2028-
2029- // start time later than end time
2030- invalidRange := * validReq
2031- invalidRange .StartTime = now + 1000
2032- assert .Error (t , app .validateSearchTraceOApiReq (ctx , & invalidRange ))
20332022}
20342023
20352024func TestOpenAPIApplication_buildSearchTraceOApiReq (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments