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"));