Skip to content

Commit b95529d

Browse files
committed
(MODULES-9035) Fix RedHat acceptance tests
1 parent 9781179 commit b95529d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spec/acceptance/stack_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ class { 'docker': #{docker_args} }
8181
end
8282

8383
it 'should be idempotent' do
84-
apply_manifest(destroy, :catch_changes=>true)
85-
sleep 5
84+
retry_on_error_matching(10, 3, /Removing network web_default/) do
85+
apply_manifest(destroy, :catch_changes=>true)
86+
end
8687
end
8788

8889
it 'should not find a docker stack' do
@@ -135,8 +136,9 @@ class { 'docker': #{docker_args} }
135136
end
136137

137138
it 'should be idempotent' do
138-
apply_manifest(@destroy_code, :catch_changes=>true)
139-
sleep 5
139+
retry_on_error_matching(10, 3, /Removing network web_default/) do
140+
apply_manifest(@destroy_code, :catch_changes=>true)
141+
end
140142
end
141143

142144
it 'should not find a docker stack' do

0 commit comments

Comments
 (0)