mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-27 22:43:41 +08:00
Test should be passing block to RSpec wait_for
Fixes flaky test
This commit is contained in:
parent
c9a51e0c4c
commit
468b7403e9
|
@ -5,6 +5,6 @@ describe 'a running zpty command' do
|
||||||
sleep 1 # Give a little time for precmd hooks to run
|
sleep 1 # Give a little time for precmd hooks to run
|
||||||
session.run_command('zpty -t kitty; echo $?')
|
session.run_command('zpty -t kitty; echo $?')
|
||||||
|
|
||||||
wait_for(session.content).to end_with("\n0")
|
wait_for { session.content }.to end_with("\n0")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user