Adapt test to new pooling
This commit is contained in:
@ -53,8 +53,8 @@ describe DockerContainerPool do
|
|||||||
expect(described_class.instance_variable_get(:@containers)[@execution_environment.id]).to be_empty
|
expect(described_class.instance_variable_get(:@containers)[@execution_environment.id]).to be_empty
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'creates a new container' do
|
it 'not creates a new container' do
|
||||||
expect(described_class).to receive(:create_container).with(@execution_environment)
|
expect(described_class).not_to receive(:create_container).with(@execution_environment)
|
||||||
described_class.get_container(@execution_environment)
|
described_class.get_container(@execution_environment)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user