ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
1.9k stars 119 forks source link

GoTestXXX set timeout #436

Open garmr-ulfr opened 4 months ago

garmr-ulfr commented 4 months ago

I have seen this addressed in #365 but that doesn't seem to work. When I run GoTestFunc -a timeout=5s there's no error and the test runs as normal but doesn't timeout. -args timeout=5s is included in the floating window title, showing that it was seen but isn't being respected.

ray-x commented 4 months ago

will https://github.com/ray-x/go.nvim/pull/435 fix the issue?

garmr-ulfr commented 4 months ago

That fixed it!! Thanks!

Just for clarity for anyone else who sees this, the command has to run like GoTestFunc -a -test.timeout=5s, not GoTestFunc -a timeout=5s as in my original post.