From 74bcf075a4fddcd336dd5962f8bbdb5783d067e4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 23:57:51 +0200 Subject: [PATCH] PreCut2 tests: the v6 suffix refusal asserts the counted suffix, not the absence of the readable stamps it also names Co-Authored-By: Claude Sonnet 5.5 --- tests/GameCult.Caching.Tests/PreCut2StoreFormatTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/GameCult.Caching.Tests/PreCut2StoreFormatTests.cs b/tests/GameCult.Caching.Tests/PreCut2StoreFormatTests.cs index dd9e0d6f..4580a185 100644 --- a/tests/GameCult.Caching.Tests/PreCut2StoreFormatTests.cs +++ b/tests/GameCult.Caching.Tests/PreCut2StoreFormatTests.cs @@ -763,8 +763,8 @@ namespace GameCult.Caching.Tests var refusal = Assert.Throws(() => new DirectoryMessagePackBackingStore(manifest).PullAll())!; - Assert.That(refusal.Message, Does.Contain("cultcache.store.v6 with a suffix of")); - Assert.That(refusal.Message, Does.Not.Contain("directory-content-addressed-pages")); + var suffixBytes = System.Text.Encoding.UTF8.GetByteCount(".directory-content-addressed-pages"); + Assert.That(refusal.Message, Does.Contain($" is cultcache.store.v6 with a suffix of {suffixBytes} bytes;")); } finally {