Skip to content

Commit 29ca17f

Browse files
committed
Add delay in kitchen test
1 parent 148de32 commit 29ca17f

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

cookbooks/aws-parallelcluster-slurm/test/controls/slurm_config_spec.rb

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,7 @@
4646
end
4747

4848
describe 'check cgroup memory resource controller is enabled' do
49-
describe command('cat /proc/cgroups') do
50-
its('stdout') { should match /memory/ }
51-
end
52-
53-
describe command("grep memory /proc/cgroups") do
54-
its('stdout') { should_not be_empty }
55-
end
56-
57-
describe command("grep memory /proc/cgroups | awk '{print $4}'") do
58-
its('stdout.strip') { should eq '1' }
59-
end
60-
end
61-
62-
describe 'check cgroup memory resource controller is enabled' do
63-
subject { bash("grep memory /proc/cgroups | awk '{print $4}'") }
49+
subject { bash("sleep 5 && grep memory /proc/cgroups | awk '{print $4}'") }
6450
its('exit_status') { should eq 0 }
6551
its('stdout.strip') { should cmp 1 }
6652
end

0 commit comments

Comments
 (0)