Cargo restore test: share the fixture's provenance ledger

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-22 22:21:08 +02:00
commit f7ba043b13

View file

@ -880,7 +880,7 @@ public sealed class CargoTransferTests : IDisposable
{
var log = new List<string>();
var settings = AuthoredSettings.Load(RestoredHullsTests.FindRepoRoot()).Read<GameplaySettings>("GameplaySettings");
var items = new ItemManager(1u, _cache, new ProvenanceLedger(), settings, log.Add);
var items = new ItemManager(1u, _cache, _items.Lots, settings, log.Add);
var zone = new Zone(items, new PlanetSettings(), new ZonePack(), new GalaxyZone { Name = "Test Zone", Owner = null }, null);
var ship = ShipWith("Crate");
Assert.True(ship.CargoBays[0].TryStore(Commodity("Slag", 4)));