Skip to content

Commit c665c64

Browse files
committed
tests: harden/fix closing/counting of windows
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.
1 parent e6a775e commit c665c64

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/workflow.vader

+8-3
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,12 @@ Execute (PlugUpdate still should not care):
689689
Execute (PlugStatus with no error):
690690
PlugStatus
691691
Log getline(1, '$')
692-
AssertExpect 'x fzf', 0
693-
AssertExpect 'Not found', 0
694-
q
692+
try
693+
AssertExpect 'x fzf', 0
694+
AssertExpect 'Not found', 0
695+
finally
696+
q
697+
endtry
695698

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

16081611
Execute (#532 - Reuse plug window):
1612+
AssertEqual 1, winnr('$'), 'Starts with 1 window'
1613+
16091614
call plug#begin()
16101615
Plug 'junegunn/goyo.vim'
16111616
call plug#end()

0 commit comments

Comments
 (0)