fix metrics test with 1.16.0 prometheus client
This commit is contained in:
parent
c0147ff528
commit
bbae445d17
@ -974,5 +974,6 @@ func timelessSampleAtLeast(lower interface{}) types.GomegaMatcher {
|
|||||||
"Metric": gstruct.Ignore(),
|
"Metric": gstruct.Ignore(),
|
||||||
"Value": gomega.BeNumerically(">=", lower),
|
"Value": gomega.BeNumerically(">=", lower),
|
||||||
"Timestamp": gstruct.Ignore(),
|
"Timestamp": gstruct.Ignore(),
|
||||||
|
"Histogram": gstruct.Ignore(),
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
@ -161,5 +161,7 @@ func boundedSample(lower, upper interface{}) types.GomegaMatcher {
|
|||||||
gomega.BeTemporally(">=", time.Now().Add(-maxStatsAge)),
|
gomega.BeTemporally(">=", time.Now().Add(-maxStatsAge)),
|
||||||
// Now() is the test start time, not the match time, so permit a few extra minutes.
|
// Now() is the test start time, not the match time, so permit a few extra minutes.
|
||||||
gomega.BeTemporally("<", time.Now().Add(2*time.Minute))),
|
gomega.BeTemporally("<", time.Now().Add(2*time.Minute))),
|
||||||
)}))
|
),
|
||||||
|
"Histogram": gstruct.Ignore(),
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user