test: wrap expectsError in mustCall
To make sure that all expectsError calls are indeed called, wrap them in mustCall. By doing so I found one obsolete expectsError call in the tests.
I think it's nice to have the exact number of calls but having a minimum would also be good if the churn is unwanted.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
test