mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 03:05:56 +08:00
fix: update TestListTsRange to return all range (#6470)
This commit is contained in:
parent
d93f72f18d
commit
98a350692b
@ -35,6 +35,8 @@ func GetListTsRanges(start, end int64) []LogsListTsRange {
|
|||||||
tStartNano = startNano
|
tStartNano = startNano
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
result = append(result, LogsListTsRange{Start: start, End: end})
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ func TestListTsRange(t *testing.T) {
|
|||||||
name: "testing for less then one hour",
|
name: "testing for less then one hour",
|
||||||
start: 1722262800000000000, // July 29, 2024 7:50:00 PM
|
start: 1722262800000000000, // July 29, 2024 7:50:00 PM
|
||||||
end: 1722263800000000000, // July 29, 2024 8:06:40 PM
|
end: 1722263800000000000, // July 29, 2024 8:06:40 PM
|
||||||
res: []LogsListTsRange{},
|
res: []LogsListTsRange{{1722262800000000000, 1722263800000000000}},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "testing for more than one hour",
|
name: "testing for more than one hour",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user