test(lifecycle): the golden placement is an existing replica's slot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-28 13:09:12 -08:00
1 parent 0e73c80a79
commit b3e4677d4d
1 file changed
+1 -1
@@ -52,7 +52,7 @@ func goldenStores(t *testing.T, dir string) {
places, err := OpenPlacementIntentStore(filepath.Join(dir, "placements"))
must("open placements", err)
_, err = places.ApplyPlan(PlacementPlan{VolumeID: "v1", DesiredRF: 1, Candidates: []PlacementCandidate{{VolumeID: "v1", ServerID: "node-a", PoolID: "pool-0", ReplicaID: "r1", Source: PlacementSourceBlankPool, DataAddr: "10.0.0.1:7001", CtrlAddr: "10.0.0.1:7002", NVMeListenPort: 4420}}})
_, err = places.ApplyPlan(PlacementPlan{VolumeID: "v1", DesiredRF: 1, Candidates: []PlacementCandidate{{VolumeID: "v1", ServerID: "node-a", PoolID: "pool-0", ReplicaID: "r1", Source: PlacementSourceExistingReplica, DataAddr: "10.0.0.1:7001", CtrlAddr: "10.0.0.1:7002", NVMeListenPort: 4420}}})
must("place v1", err)
nodes, err := OpenNodeInventoryStore(filepath.Join(dir, "nodes"))