test: reuse replication compatibility fixtures

Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
Feng Ruohang
2026-09-09 14:44:02 +08:00
parent a1141a43f2
commit 66fe61ff65
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ func TestReplicateDeleteMarkerTargetSemantics(t *testing.T) {
func testReplicateDeleteMarkerPurge(obj ObjectLayer, instanceType, bucket string, router http.Handler, creds auth.Credentials, t *testing.T, legacy bool) { func testReplicateDeleteMarkerPurge(obj ObjectLayer, instanceType, bucket string, router http.Handler, creds auth.Credentials, t *testing.T, legacy bool) {
ctx := t.Context() ctx := t.Context()
const arn = "arn:minio:replication::00000000-0000-4000-8000-000000000001:replica" const arn = "arn:minio:replication::af470089-d354-4473-934c-9e1f52f6da89:bucket"
const name = "marker" const name = "marker"
version := mustGetUUID() version := mustGetUUID()
remoteBucket := getRandomBucketName() remoteBucket := getRandomBucketName()
+1 -1
View File
@@ -79,7 +79,7 @@ func TestReplicationMRFDropsVisible(t *testing.T) {
seen = make(map[string]bool) seen = make(map[string]bool)
for _, family := range families { for _, family := range families {
for name, value := range want { for name, value := range want {
if family.GetName() != "minio_replication_"+name { if family.GetName() != replicationCollectorPath.metricPrefix()+"_"+name {
continue continue
} }
seen[name] = true seen[name] = true