Merge pull request #11750 from pmorie/debug-examples-test

Make examples test easier to debug
This commit is contained in:
Vish Kannan 2015-07-23 11:15:03 -07:00
commit 9fef5649fe

View File

@ -365,8 +365,7 @@ func TestExampleObjectSchemas(t *testing.T) {
t.Errorf("Expected no error, Got %v", err)
}
if tested != len(expected) {
t.Logf("failing path: %q", path)
t.Errorf("Expected %d examples, Got %d", len(expected), tested)
t.Errorf("Directory %v: Expected %d examples, Got %d", path, len(expected), tested)
}
}
}