mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 10:17:51 +00:00
add endTime variable for promeClient.Series api
Signed-off-by: 屈骏 <qujun@tiduyun.com>
This commit is contained in:
parent
6e05ab938e
commit
5e169f5b0d
3 changed files with 6 additions and 3 deletions
|
|
@ -87,7 +87,8 @@ var _ = Describe("Custom Metrics Provider", func() {
|
|||
|
||||
By("setting the acceptible interval to now until the next update, with a bit of wiggle room")
|
||||
startTime := pmodel.Now().Add(-1*fakeProviderUpdateInterval - fakeProviderUpdateInterval/10)
|
||||
fakeProm.AcceptableInterval = pmodel.Interval{Start: startTime, End: 0}
|
||||
endTime := pmodel.Now().Add(1*fakeProviderUpdateInterval + fakeProviderUpdateInterval/10)
|
||||
fakeProm.AcceptableInterval = pmodel.Interval{Start: startTime, End: endTime}
|
||||
|
||||
By("updating the list of available metrics")
|
||||
// don't call RunUntil to avoid timing issue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue