diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-11 03:14:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-11 03:14:10 +0200 |
commit | 337299c8082347feecb5e733bed993c6a5933456 (patch) | |
tree | b2f491c54f8ed3a4ed57e1b78bf907b918b8b34c /test/functional/ui/screen.lua | |
parent | 9aface8c4d1edd25d4fed3e099e3c2c02b0a282a (diff) | |
parent | de378477cc3ebface5da5dbd24015959755f137e (diff) | |
download | rneovim-337299c8082347feecb5e733bed993c6a5933456.tar.gz rneovim-337299c8082347feecb5e733bed993c6a5933456.tar.bz2 rneovim-337299c8082347feecb5e733bed993c6a5933456.zip |
Merge #6490 from justinmk/test
Closes #6487
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 2f2cc85dab..afbcd222c7 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -284,18 +284,13 @@ function Screen:wait(check, timeout) if failure_after_success then print([[ -Warning: Screen changes have been received after the expected state was seen. -This is probably due to an indeterminism in the test. Try adding -`wait()` (or even a separate `screen:expect(...)`) at a point of possible -indeterminism, typically in between a `feed()` or `execute()` which is non- -synchronous, and a synchronous api call. - -Note that sometimes a `wait` can trigger redraws and consequently generate more -indeterminism. If adding `wait` calls seems to increase the frequency of these -messages, try removing every `wait` call in the test. - -If everything else fails, use Screen:redraw_debug to help investigate what is - causing the problem. + +Warning: Screen changes were received after the expected state. This indicates +indeterminism in the test. Try adding wait() (or screen:expect(...)) between +asynchronous (feed(), nvim_input()) and synchronous API calls. + - Use Screen:redraw_debug() to investigate the problem. + - wait() can trigger redraws and consequently generate more indeterminism. + In that case try removing every wait(). ]]) local tb = debug.traceback() local index = string.find(tb, '\n%s*%[C]') |