weechat: fix test

Closes #34867.