mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
refactor(tests): lift retry() into assert_log()
This commit is contained in:
@@ -84,9 +84,7 @@ describe('notify', function()
|
||||
}}
|
||||
nvim('subscribe', 'event1')
|
||||
nvim('unsubscribe', 'doesnotexist')
|
||||
retry(nil, 1000, function()
|
||||
assert_log("tried to unsubscribe unknown event 'doesnotexist'", testlog, 10)
|
||||
end)
|
||||
assert_log("tried to unsubscribe unknown event 'doesnotexist'", testlog, 10)
|
||||
nvim('unsubscribe', 'event1')
|
||||
assert_alive()
|
||||
end)
|
||||
|
Reference in New Issue
Block a user