Skip to content

Commit

Permalink
fix: update TestListTsRange to return all range (#6470)
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain authored Nov 19, 2024
1 parent d93f72f commit 98a3506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/query-service/utils/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ func GetListTsRanges(start, end int64) []LogsListTsRange {
tStartNano = startNano
}
}
} else {
result = append(result, LogsListTsRange{Start: start, End: end})
}
return result
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/query-service/utils/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestListTsRange(t *testing.T) {
name: "testing for less then one hour",
start: 1722262800000000000, // July 29, 2024 7:50:00 PM
end: 1722263800000000000, // July 29, 2024 8:06:40 PM
res: []LogsListTsRange{},
res: []LogsListTsRange{{1722262800000000000, 1722263800000000000}},
},
{
name: "testing for more than one hour",
Expand Down

0 comments on commit 98a3506

Please sign in to comment.