diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-19 20:27:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 20:27:25 +0800 |
commit | 078e4461812ce2a35919b08cf1cd658aa1889dc8 (patch) | |
tree | 73e80635ccc97ffcf41c711fae4a7a8db68c1a1e /test/functional/vimscript/let_spec.lua | |
parent | 101fd04ee2036b125a93f3e71dbaa4ae6917ce8b (diff) | |
parent | 72dfd57e5f45357db36155b79d7873cd0fc3dfaf (diff) | |
download | rneovim-078e4461812ce2a35919b08cf1cd658aa1889dc8.tar.gz rneovim-078e4461812ce2a35919b08cf1cd658aa1889dc8.tar.bz2 rneovim-078e4461812ce2a35919b08cf1cd658aa1889dc8.zip |
Merge pull request #19429 from zeertzjq/fix-flaky-tests
fix flaky tests
Diffstat (limited to 'test/functional/vimscript/let_spec.lua')
-rw-r--r-- | test/functional/vimscript/let_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/vimscript/let_spec.lua b/test/functional/vimscript/let_spec.lua index ca1b5e8907..86905199a8 100644 --- a/test/functional/vimscript/let_spec.lua +++ b/test/functional/vimscript/let_spec.lua @@ -7,6 +7,7 @@ local eval = helpers.eval local meths = helpers.meths local exec = helpers.exec local exec_capture = helpers.exec_capture +local expect_exit = helpers.expect_exit local source = helpers.source local testprg = helpers.testprg @@ -28,7 +29,7 @@ describe(':let', function() it(":unlet self-referencing node in a List graph #6070", function() -- :unlet-ing a self-referencing List must not allow GC on indirectly -- referenced in-scope Lists. Before #6070 this caused use-after-free. - source([=[ + expect_exit(100, source, [=[ let [l1, l2] = [[], []] echo 'l1:' . id(l1) echo 'l2:' . id(l2) |