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()
|
public void MembersEmptyRustStoreStillLoads()
|
||||||
{
|
{
|
||||||
AssertEqualToExpected(ReadM1("rust-members-empty-store.cc", out var reports));
|
AssertEqualToExpected(ReadM1("rust-members-empty-store.cc", out var reports));
|
||||||
var warnings = reports.SelectMany(report => report.Warnings).Select(warning => warning.Code).Distinct().ToArray();
|
// What today's reader says of a catalog with no member rows: it loads, with warnings and no refusal. The three codes are
|
||||||
Assert.That(warnings, Is.Not.Empty);
|
// the ones the reader raises when it has members and the store has none.
|
||||||
Assert.That(warnings, Is.All.EqualTo("defaulted_missing_slot"));
|
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