From 468b7403e933af1cc2d08356340a48e5b2fb45e1 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Sun, 26 Feb 2017 14:18:22 -0700 Subject: [PATCH] Test should be passing block to RSpec wait_for Fixes flaky test --- spec/integrations/client_zpty_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integrations/client_zpty_spec.rb b/spec/integrations/client_zpty_spec.rb index fb7bbeb..8f1550e 100644 --- a/spec/integrations/client_zpty_spec.rb +++ b/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