diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-09-22 10:28:26 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2025-09-22 14:03:42 +0800 |
| commit | 777dafdc4602a07cacaae59e57f9262423aa66fd (patch) | |
| tree | 64ea6a7b2ee91359e869aba5ee31311e6211a0ee /test/functional/plugin/msgpack_spec.lua | |
| parent | 4adfc4b7bcd1f4021e9b338273ee43822294ca43 (diff) | |
| download | rneovim-777dafdc4602a07cacaae59e57f9262423aa66fd.tar.gz rneovim-777dafdc4602a07cacaae59e57f9262423aa66fd.tar.bz2 rneovim-777dafdc4602a07cacaae59e57f9262423aa66fd.zip | |
test: reduce some clear() calls
Use only a single clear() call in some test/functional/vimscript/ test
files whose test cases have very little side effect.
A downside of using a single clear() is that if a crash happens in one
test case, all following test cases in the same file will also fail, but
these functionalities and tests don't change very often.
Diffstat (limited to 'test/functional/plugin/msgpack_spec.lua')
| -rw-r--r-- | test/functional/plugin/msgpack_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/plugin/msgpack_spec.lua b/test/functional/plugin/msgpack_spec.lua index 61ab730da8..6afb370df6 100644 --- a/test/functional/plugin/msgpack_spec.lua +++ b/test/functional/plugin/msgpack_spec.lua @@ -11,7 +11,7 @@ local ok = t.ok local NIL = vim.NIL describe('autoload/msgpack.vim', function() - before_each(function() + setup(function() clear { args = { '-u', 'NORC' } } end) |