Rewrite brittle validation and schema tests

This commit is contained in:
2026-07-18 23:44:27 +00:00
parent 0cca3b1f5d
commit d88bcb6070
4 changed files with 248 additions and 221 deletions

View File

@@ -56,10 +56,6 @@ func TestMustLookupResponseSchemaPanicsForUnknownKey(t *testing.T) {
func TestRegisteredResponseSchemasSortedByKey(t *testing.T) {
schemas := RegisteredResponseSchemas()
if len(schemas) != 2 {
t.Fatalf("expected two schemas, got %d", len(schemas))
}
keys := make([]string, len(schemas))
seen := make(map[ResponseSchemaKey]bool, len(schemas))
for i, schema := range schemas {