瀏覽代碼

Test should be passing block to RSpec wait_for

Fixes flaky test
pull/221/head
Eric Freese 7 年之前
父節點
當前提交
468b7403e9
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      spec/integrations/client_zpty_spec.rb

+ 1
- 1
spec/integrations/client_zpty_spec.rb 查看文件

@ -5,6 +5,6 @@ describe 'a running zpty command' do
sleep 1 # Give a little time for precmd hooks to run
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

Loading…
取消
儲存