aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/utility_functions_spec.lua
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-08 16:02:28 +0200
committerGitHub <noreply@github.com>2019-08-08 16:02:28 +0200
commit38a3af5dffd072e465fddbdc74ca816a71b9ee31 (patch)
tree5ec8bf0ee317917781cc3acd4950ed5c1d48643d /test/functional/lua/utility_functions_spec.lua
parent2e01e7ce8a3728aced13f06e262729519d8cad76 (diff)
downloadrneovim-38a3af5dffd072e465fddbdc74ca816a71b9ee31.tar.gz
rneovim-38a3af5dffd072e465fddbdc74ca816a71b9ee31.tar.bz2
rneovim-38a3af5dffd072e465fddbdc74ca816a71b9ee31.zip
tests: output_spec: use shell-test REP_NODELAY (#10726)
Fix flaky "shell command :! throttles shell-command output greater than ~10KB:": [ RUN ] shell command :! throttles shell-command output greater than ~10KB: warning: Screen changes were received after the expected state. This indicates indeterminism in the test. Try adding screen:expect(...) (or wait()) between asynchronous (feed(), nvim_input()) and synchronous API calls. - Use screen:redraw_debug() to investigate; it may find relevant intermediate states that should be added to the test to make it more robust. - If the purpose of the test is to assert state after some user input sent with feed(), adding screen:expect() before the feed() will help to ensure the input is sent when Nvim is in a predictable state. This is preferable to wait(), for being closer to real user interaction. - wait() can trigger redraws and consequently generate more indeterminism. Try removing wait(). ERR test/functional/ui/screen.lua:579: Failed to match any screen lines. Expected (anywhere): " %." Actual: |XXXXXXXXXX 591 | |XXXXXXXXXX 592 | |XXXXXXXXXX 593 | |XXXXXXXXXX 594 | | | | | |{3:-- TERMINAL --} | stack traceback: test/functional/ui/screen.lua:579: in function '_wait' test/functional/ui/screen.lua:367: in function 'expect' test/functional/ui/output_spec.lua:63: in function <test/functional/ui/output_spec.lua:53> Log: https://travis-ci.org/neovim/neovim/jobs/569082705#L5355 (gcc-functionaltest-lua)
Diffstat (limited to 'test/functional/lua/utility_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions