refactor(tests): lift retry() into assert_log()

This commit is contained in:
Justin M. Keyes
2023-01-17 00:12:59 +01:00
parent 6ec7bcb618
commit 665a7dafaf
8 changed files with 50 additions and 69 deletions

View File

@@ -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)