CatalogMemberVectorTests: pin the warning codes the reader actually raises for a members-[] store
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
aade365abb
commit
0bce19efef
1 changed files with 4 additions and 3 deletions
|
|
@ -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" }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue