diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-02-15 07:26:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 07:26:55 +0800 |
commit | 05faa8f30ad770d4e4ead41cec601ccced8fb97f (patch) | |
tree | 23680deec8f90b7159c23f19f0a7a042ac1941f7 /test/functional/ui/searchhl_spec.lua | |
parent | 556f8646c01d1751cf39fe4df9c622899dceab9d (diff) | |
download | rneovim-05faa8f30ad770d4e4ead41cec601ccced8fb97f.tar.gz rneovim-05faa8f30ad770d4e4ead41cec601ccced8fb97f.tar.bz2 rneovim-05faa8f30ad770d4e4ead41cec601ccced8fb97f.zip |
test: make expect_unchanged() less confusing (#22255)
Problem:
The sleep before collecting the initial screen state is confusing and
may lead to unexpected success if it comes after a blocking RPC call.
Solution:
Remove that sleep and add an "intermediate" argument.
Diffstat (limited to 'test/functional/ui/searchhl_spec.lua')
-rw-r--r-- | test/functional/ui/searchhl_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua index 404cc6d043..916a5eb537 100644 --- a/test/functional/ui/searchhl_spec.lua +++ b/test/functional/ui/searchhl_spec.lua @@ -317,6 +317,7 @@ describe('search highlighting', function() ]]) feed('/foo') helpers.poke_eventloop() + screen:sleep(0) screen:expect_unchanged() end) |