Add tests for DockerContainerPool strategy

This commit is contained in:
Felix Auringer
2021-06-23 17:01:35 +02:00
committed by Sebastian Serth
parent 704407b9fc
commit db2d1e3164
3 changed files with 271 additions and 7 deletions

View File

@ -98,7 +98,8 @@ describe Runner do
runner.copy_files(nil)
end
it 'retries to copy the files' do
it 'calls copy_file twice' do
# copy_files is called again after a new runner was requested.
expect(strategy).to receive(:copy_files).twice
runner.copy_files(nil)
end