diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-11 17:09:26 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-11 19:03:28 +0100 |
commit | 44f275d51805f328084559db0c74b95d1517f7c5 (patch) | |
tree | aa2ddcced6ef05c7c1767c0f72487433fe5122c9 | |
parent | 1be0107168a9120eddbce514fd57ba1e8d218e79 (diff) | |
download | rneovim-44f275d51805f328084559db0c74b95d1517f7c5.tar.gz rneovim-44f275d51805f328084559db0c74b95d1517f7c5.tar.bz2 rneovim-44f275d51805f328084559db0c74b95d1517f7c5.zip |
vim-patch:8.0.1329: when a flaky test fails it also often fails the second time
Problem: When a flaky test fails it also often fails the second time.
Solution: Sleep a couple of seconds before the second try.
https://github.com/vim/vim/commit/550586015232ecc4f68b3479fa8ba2cf81c76e7b
-rw-r--r-- | src/nvim/testdir/runtest.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim index c034ad2810..4b5aae823e 100644 --- a/src/nvim/testdir/runtest.vim +++ b/src/nvim/testdir/runtest.vim @@ -250,6 +250,10 @@ for s:test in sort(s:tests) call add(s:messages, 'Flaky test failed, running it again') let first_run = v:errors + " Flakiness is often caused by the system being very busy. Sleep a couple + " of seconds to have a higher chance of succeeding the second time. + sleep 2 + let v:errors = [] call RunTheTest(s:test) if len(v:errors) > 0 |