harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

`assert_num_queries` throws an exception with the verbose option #1857

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

This helper function does not (always?) work when run in CI, where the -v -v option is enabled.

See https://github.com/harvard-lil/h2o/actions/runs/3836232977/jobs/6530180734#step:6:1289 for an example. The problem only occurs when the expectation is violated, but this bug prevents even the non-verbose error message from being displayed, obscuring the root issue.