Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix unfinished stubbing of command response writer
The engine is shared across multiple tests and not stopped in-between. With this change we only set up mocking of the response writer once and not for every test method. This ensures that mocking does not interfere with engine processing from previous tests which would show up as unfinished mocking exceptions. While both versions of `interceptResponseWriter` should be equivalent, the previous version would sometimes fail with an `UnfinishedStubbingException`.
- Loading branch information