mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
pkg/custom-provider: update expected test queries
This commit is contained in:
parent
7d895374b0
commit
69ae2d1210
2 changed files with 3 additions and 9 deletions
|
|
@ -364,12 +364,6 @@ func compactRegexp(values []string) (string, error) {
|
|||
return "", ErrMalformedQuery
|
||||
}
|
||||
}
|
||||
if len(values) == 0 {
|
||||
return "", nil
|
||||
}
|
||||
if len(values) == 1 {
|
||||
return values[0], nil
|
||||
}
|
||||
expr := strings.Join(values, "|")
|
||||
re, err := syntax.Parse(expr, syntax.POSIX)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue