mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
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(),
|
||||
"Value": gomega.BeNumerically(">=", lower),
|
||||
"Timestamp": gstruct.Ignore(),
|
||||
"Histogram": gstruct.Ignore(),
|
||||
}))
|
||||
}
|
||||
|
@ -161,5 +161,7 @@ func boundedSample(lower, upper interface{}) types.GomegaMatcher {
|
||||
gomega.BeTemporally(">=", time.Now().Add(-maxStatsAge)),
|
||||
// Now() is the test start time, not the match time, so permit a few extra minutes.
|
||||
gomega.BeTemporally("<", time.Now().Add(2*time.Minute))),
|
||||
)}))
|
||||
),
|
||||
"Histogram": gstruct.Ignore(),
|
||||
}))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user