diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-10-13 20:18:22 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-10-13 22:10:42 +0200 |
commit | 4987311fb5b8f4a11d26995f71f5f402a9e2ace4 (patch) | |
tree | e070d02687ba338260a004be738e777b1639e508 /test/functional/ui/multigrid_spec.lua | |
parent | a330129a280a34963e42d498f7cb1f53e6723e85 (diff) | |
download | rneovim-4987311fb5b8f4a11d26995f71f5f402a9e2ace4.tar.gz rneovim-4987311fb5b8f4a11d26995f71f5f402a9e2ace4.tar.bz2 rneovim-4987311fb5b8f4a11d26995f71f5f402a9e2ace4.zip |
tests/ui: remove unnecessary screen:detach()
It is perfectly fine and expected to detach from the screen just by
the UI disconnecting from nvim or exiting nvim. Just keep detach() in
screen_basic_spec, to get some coverage of the detach method itself.
This avoids hang on failure in many situations (though one could argue
that detach() should be "fast", or at least "as fast as resize",
which works in press-return already).
Never use detach() just to change the size of the screen, try_resize()
method exists for that specifically.
Diffstat (limited to 'test/functional/ui/multigrid_spec.lua')
-rw-r--r-- | test/functional/ui/multigrid_spec.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/functional/ui/multigrid_spec.lua b/test/functional/ui/multigrid_spec.lua index 30a5b63d89..01ffe80be3 100644 --- a/test/functional/ui/multigrid_spec.lua +++ b/test/functional/ui/multigrid_spec.lua @@ -37,10 +37,6 @@ describe('ext_multigrid', function() }) end) - after_each(function() - screen:detach() - end) - it('default initial screen', function() screen:expect{grid=[[ ## grid 1 |