test: register the GC fixture volume before authority publication

This commit is contained in:
pingqiu committed 2026-11-15 17:04:16 -08:00
1 parent 9c29ee9c42
commit e5578df747
1 file changed
+5
@@ -130,6 +130,11 @@ func TestIntegration_OpsChunkGC_RealMasterAndStore(t *testing.T) {
t.Error(err)
}
})
// The remote catalog VOLUME is distinct from the master's desired-volume
// registry. Register the live RF1 volume before observations mint authority.
if _, err = m.Lifecycle().Volumes.CreateVolume(lifecycle.VolumeSpec{VolumeID: "vol-a", SizeBytes: 64 * 4096, ReplicationFactor: 1}); err != nil {
t.Fatal(err)
}
if _, err = m.Lifecycle().Placements.ApplyPlan(lifecycle.PlacementPlan{VolumeID: "vol-a", DesiredRF: 1, Candidates: []lifecycle.PlacementCandidate{{VolumeID: "vol-a", ServerID: "node-a", ReplicaID: "r2", Source: lifecycle.PlacementSourceExistingReplica}}}); err != nil {
t.Fatal(err)
}