Skip to content

Commit

Permalink
ci: fix CI datacenter name (#3170)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss authored Sep 24, 2024
1 parent 1ff7e71 commit ee91c24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions integration/test/dashboard_json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ const (
zapi = "ZAPI"
)

var restDataCollectors = []string{"Rest"}

var isStringAlphabetic = regexp.MustCompile(`^[a-zA-Z0-9_]*$`).MatchString

var fileSet []string
Expand Down Expand Up @@ -284,9 +282,9 @@ func counterIsMissing(flavor string, counter string, waitFor time.Duration) bool
if shouldIgnoreCounter(counter, flavor) {
return false
}
query := counter + `{datacenter=~"` + strings.Join(restDataCollectors, "|") + `"}`
query := counter + `{datacenter=~"` + rest + `"}`
if flavor == zapi {
query = counter + `{datacenter!~"` + strings.Join(restDataCollectors, "|") + `"}`
query = counter + `{datacenter!~"` + rest + `"}`
}
return !hasDataInDB(query, waitFor)
}
Expand Down

0 comments on commit ee91c24

Please sign in to comment.