Current tests can fail depending on terminal width #22399
Labels
interactive
Testing
Related to the test runner. Do not use for test failures unless it relates to the test runner itself
To my surprise, today as I was testing a branch, it failed in the pretty printer tests. Since I had not touched those files, I reverted to the master branch and still had this issue.
It turns out that when I have my terminal on full screen, a test is failed because it is expected to contain a newline, but it does not have it. Indeed, that output fits on one line:
While I appreciate that my screen might be a bit larger than average, I would argue that it is not a completely unreasonable resolution to work at. The issue might be related to working with Ubuntu on WSL2.
Making my terminal smaller indeed solves the failed test.
The text was updated successfully, but these errors were encountered: