Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: Popup test is flaky. Solution: Add a WaitFor() and fix another.
- Loading branch information
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c79977a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I confirmed,
term_wait
after sendingo<Ecs>G
is need.Passed: applied the following patch
https://travis-ci.org/ichizok/vim/builds/281518922
Failed: reverted patch (== original test code)
https://travis-ci.org/ichizok/vim/builds/281523967
c79977a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c79977a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I investigated further;
Vim built with ASAN has lesser performance, so in-terminal Vim needs more than 100ms from
term_start
to be in the state of selection of ins-completion mode (e.g. waiting the next character of<C-X>
).https://travis-ci.org/ichizok/vim/builds/281881274
Therefore, for example, it is even enough to increate timeout before sending
<C-V>
as below.(but "200ms" is also arbitrary...
c79977a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.