Skip to content

Commit

Permalink
tests: harden/fix closing/counting of windows
Browse files Browse the repository at this point in the history
If "PlugUpdate still should not care" fails the window is not closed and
the count is off afterwards.  This try/finally should get added to more
tests probably.
  • Loading branch information
blueyed committed Jan 15, 2018
1 parent b4e6465 commit c694d01
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/workflow.vader
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,12 @@ Execute (PlugUpdate still should not care):
Execute (PlugStatus with no error):
PlugStatus
Log getline(1, '$')
AssertExpect 'x fzf', 0
AssertExpect 'Not found', 0
q
try
AssertExpect 'x fzf', 0
AssertExpect 'Not found', 0
finally
q
endtry

Execute (Check &rtp after SomeCommand):
Log &rtp
Expand Down Expand Up @@ -1606,6 +1609,8 @@ Execute (#530 - Comparison of incompatible git URIs):
Assert !CompareURI('https://github.com/junegunn/vim-plug.git', 'https://github.com:12345/junegunn/vim-plug.git')

Execute (#532 - Reuse plug window):
AssertEqual 1, winnr('$'), 'Starts with 1 window'

call plug#begin()
Plug 'junegunn/goyo.vim'
call plug#end()
Expand Down

0 comments on commit c694d01

Please sign in to comment.