Skip to content

Commit 6082c4e

Browse files
committed
fix test
1 parent f4f2499 commit 6082c4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/postgres_exporter/percona_compatibility_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestReferenceCompatibility(t *testing.T) {
3030
}
3131
req, err := http.NewRequest("GET", "http://localhost:42000/metrics", nil)
3232
assert.Nil(t, err)
33-
//req.SetBasicAuth("pmm", "/agent_id/1654d07b-da30-40aa-9c93-8e69397fc4c2")
33+
req.SetBasicAuth("pmm", "/agent_id/825dcdbf-af1c-4eb4-9e96-21699aa6ff7b")
3434
resp, err := client.Do(req)
3535
assert.Nil(t, err)
3636
defer resp.Body.Close()
@@ -115,6 +115,7 @@ func cleanKeyOrValue(s string) (res string) {
115115
regexp.MustCompile(`\d*\.\d*\.\d*\.\d*:\d*`),
116116
regexp.MustCompile(`go1.\d*.\d*`),
117117
regexp.MustCompile(`filename=".*",`),
118+
regexp.MustCompile(`hashsum=".*"`),
118119
}
119120
for _, each := range regexpsToRemove {
120121
res = each.ReplaceAllString(res, "")

0 commit comments

Comments
 (0)