mitmproxy: fix test

Closes #35152.