Skip to content

Commit 989ea8d

Browse files
committed
Add debugging to some of the spec tests
1 parent 90c3a53 commit 989ea8d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/puppet/provider/rabbitmq_cli.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def self.run_with_retries(count = 30, step = 6, timeout = 10)
7171
output = Timeout.timeout(timeout) do
7272
yield
7373
end
74-
rescue Puppet::ExecutionFailure, Timeout::Error
74+
rescue Puppet::ExecutionFailure => e
75+
Puppet.debug "Command failed, retrying: #{e.message}"
76+
sleep step
77+
rescue Timeout::Error
7578
Puppet.debug 'Command failed, retrying'
7679
sleep step
7780
else

spec/spec_helper_acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@
9999
end
100100

101101
it 'applies a second time without changes' do
102-
apply_manifest(pp, catch_changes: true)
102+
apply_manifest(pp, catch_changes: true, debug: true)
103103
end
104104
end

0 commit comments

Comments
 (0)