mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Remove debug statements. Return when get_vm returns nil
This commit is contained in:
parent
cd73f53561
commit
830acd705d
3 changed files with 24 additions and 37 deletions
|
|
@ -925,9 +925,10 @@ EOT
|
|||
end
|
||||
|
||||
describe '#vm_ready?' do
|
||||
let(:domain) { nil }
|
||||
context 'When a VM is ready' do
|
||||
before(:each) do
|
||||
expect(subject).to receive(:open_socket).with(vmname)
|
||||
expect(subject).to receive(:open_socket).with(vmname, domain)
|
||||
end
|
||||
|
||||
it 'should return true' do
|
||||
|
|
@ -939,7 +940,7 @@ EOT
|
|||
# TODO not sure how to handle a VM that is passed in but
|
||||
# not located in the pool. Is that ready or not?
|
||||
before(:each) do
|
||||
expect(subject).to receive(:open_socket).with(vmname)
|
||||
expect(subject).to receive(:open_socket).with(vmname, domain)
|
||||
end
|
||||
|
||||
it 'should return true' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue