diff --git a/exporter/redis_test.go b/exporter/redis_test.go index e61484ed..4f222f8c 100644 --- a/exporter/redis_test.go +++ b/exporter/redis_test.go @@ -993,8 +993,8 @@ func TestHTTPEndpoint(t *testing.T) { `standalone`, `cmd="get"`, - `redis_db_keys{addr="` + os.Getenv("TEST_REDIS_URI") + `",alias="",db="db0"} 1`, - `redis_db_expiring_keys_total{addr="` + os.Getenv("TEST_REDIS_URI") + `",alias="",db="db0"} `, + `test_db_keys{addr="` + os.Getenv("TEST_REDIS_URI") + `",alias="",db="db11"} 11`, + `test_db_keys_expiring{addr="` + os.Getenv("TEST_REDIS_URI") + `",alias="",db="db11"} `, } for _, test := range tests { if !strings.Contains(body, test) {