diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-01-17 00:12:59 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-01-17 00:19:30 +0100 |
commit | 665a7dafaf892b31285f35a43a90fc6e968fd7da (patch) | |
tree | 7da94ed4e3e9eaa4018a84ba43234bb39c598c35 /test/functional/core/log_spec.lua | |
parent | 6ec7bcb6184f562157eebc8d0f25f78ba333c6a5 (diff) | |
download | rneovim-665a7dafaf892b31285f35a43a90fc6e968fd7da.tar.gz rneovim-665a7dafaf892b31285f35a43a90fc6e968fd7da.tar.bz2 rneovim-665a7dafaf892b31285f35a43a90fc6e968fd7da.zip |
refactor(tests): lift retry() into assert_log()
Diffstat (limited to 'test/functional/core/log_spec.lua')
-rw-r--r-- | test/functional/core/log_spec.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/functional/core/log_spec.lua b/test/functional/core/log_spec.lua index 3b1ccd9559..f682df4155 100644 --- a/test/functional/core/log_spec.lua +++ b/test/functional/core/log_spec.lua @@ -6,7 +6,6 @@ local eq = helpers.eq local exec_lua = helpers.exec_lua local expect_exit = helpers.expect_exit local request = helpers.request -local retry = helpers.retry describe('log', function() local testlog = 'Xtest_logging' @@ -40,9 +39,7 @@ describe('log', function() }}) local tid = _G._nvim_test_id - retry(nil, 1000, function() - assert_log(tid..'%.%d+%.%d +server_init:%d+: test log message', testlog, 100) - end) + assert_log(tid..'%.%d+%.%d +server_init:%d+: test log message', testlog, 100) exec_lua([[ local j1 = vim.fn.jobstart({ vim.v.progpath, '-es', '-V1', '+foochild', '+qa!' }, vim.empty_dict()) @@ -50,8 +47,6 @@ describe('log', function() ]]) -- Child Nvim spawned by jobstart() appends "/c" to parent name. - retry(nil, 1000, function() - assert_log('%.%d+%.%d/c +server_init:%d+: test log message', testlog, 100) - end) + assert_log('%.%d+%.%d/c +server_init:%d+: test log message', testlog, 100) end) end) |