spec/lib/spawn/ssh_spec.rb in evrone-common-spawn-0.0.4 vs spec/lib/spawn/ssh_spec.rb in evrone-common-spawn-0.0.5
- old
+ new
@@ -49,10 +49,10 @@
run_ssh('echo $USER; sleep 0.5', timeout: 0.2)
}.to raise_error(Evrone::Common::Spawn::TimeoutError)
end
it 'run command with timeout successfuly' do
- code = run_ssh('echo $USER; sleep 0.2', timeout: 0.5)
+ code = run_ssh('echo $USER; sleep 0.2', timeout: 1)
expect(collected).to eq "#{user}\n"
expect(code).to eq 0
end
end