From 0bce19efef74e10d64fc6b8a32286e964cd65c9f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 27 Nov 2026 22:25:32 +0100 Subject: [PATCH] CatalogMemberVectorTests: pin the warning codes the reader actually raises for a members-[] store Co-Authored-By: Claude Sonnet 5.5 --- tests/GameCult.Caching.Tests/CatalogMemberVectorTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/GameCult.Caching.Tests/CatalogMemberVectorTests.cs b/tests/GameCult.Caching.Tests/CatalogMemberVectorTests.cs index dc0bb1ae..909ec393 100644 --- a/tests/GameCult.Caching.Tests/CatalogMemberVectorTests.cs +++ b/tests/GameCult.Caching.Tests/CatalogMemberVectorTests.cs @@ -168,9 +168,10 @@ namespace GameCult.Caching.Tests public void MembersEmptyRustStoreStillLoads() { AssertEqualToExpected(ReadM1("rust-members-empty-store.cc", out var reports)); - var warnings = reports.SelectMany(report => report.Warnings).Select(warning => warning.Code).Distinct().ToArray(); - Assert.That(warnings, Is.Not.Empty); - Assert.That(warnings, Is.All.EqualTo("defaulted_missing_slot")); + // What today's reader says of a catalog with no member rows: it loads, with warnings and no refusal. The three codes are + // the ones the reader raises when it has members and the store has none. + var warnings = reports.SelectMany(report => report.Warnings).Select(warning => warning.Code).Distinct().OrderBy(code => code, StringComparer.Ordinal).ToArray(); + Assert.That(warnings, Is.EqualTo(new[] { "compatible_schema_id_drift", "content_hash_drift", "defaulted_missing_slot" })); } } }