Rewrite brittle validation and schema tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user