From 36873e696e1c6059d3782b7ce28b5c6c32a33402 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 28 Oct 2026 05:12:19 +0100 Subject: [PATCH] VariantTests: the store-less rebase test builds its cache with the codec Co-Authored-By: Claude Opus 5.5 --- tests/GameCult.Caching.Tests/VariantTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/GameCult.Caching.Tests/VariantTests.cs b/tests/GameCult.Caching.Tests/VariantTests.cs index 1bcb36a2..62255b12 100644 --- a/tests/GameCult.Caching.Tests/VariantTests.cs +++ b/tests/GameCult.Caching.Tests/VariantTests.cs @@ -286,7 +286,7 @@ namespace GameCult.Caching.Tests [Test] public void ARebaseOntoABaseOfAnotherTypeIsRefusedWithoutAStore() { - using var cache = new CultCache(Registry); + using var cache = new CultCache(Registry, CultCacheMessagePack.CreateCodec(Registry)); SeedBase(cache); SeedBig(cache); var other = new CultRecordKey("other"); @@ -418,7 +418,7 @@ namespace GameCult.Caching.Tests [Test] public void ACacheWithoutACodecHoldsNoVariants() { - using var cache = new CultCache(Registry); + using var cache = new CultCache(Registry, CultCacheMessagePack.CreateCodec(Registry)); cache.Commit(batch => batch.Upsert(typeof(VariantGear), Laser(), BaseKey)); var error = Refused(() => cache.UpsertVariantAsync(BigKey, BaseKey).GetAwaiter().GetResult()); Assert.That(error.Message, Does.Contain(BigKey.Value).And.Contain("codec"));