spec/command/shell_spec.rb in kuroko2-0.4.4 vs spec/command/shell_spec.rb in kuroko2-0.4.5

- old
+ new

@@ -60,9 +60,19 @@ execution.reload expect(execution.started_at).to be_nil end end + context 'when all workers are suspended' do + let(:worker) { create(:worker, suspended: true) } + + it 'skips execution' do + is_expected.to be_nil + execution.reload + expect(execution.started_at).to be_nil + end + end + describe 'memory expectancy calculation' do let(:worker) { create(:worker) } let(:memory_expectancy) { execution.job_definition.memory_expectancy } context 'when memory consumption logs exist' do