Skip to content

Commit

Permalink
Add debugging to some of the spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaludy committed Jun 30, 2020
1 parent 90c3a53 commit 989ea8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/puppet/provider/rabbitmq_cli.rb
Expand Up @@ -71,7 +71,10 @@ def self.run_with_retries(count = 30, step = 6, timeout = 10)
output = Timeout.timeout(timeout) do
yield
end
rescue Puppet::ExecutionFailure, Timeout::Error
rescue Puppet::ExecutionFailure => e
Puppet.debug "Command failed, retrying: #{e.message}"
sleep step
rescue Timeout::Error
Puppet.debug 'Command failed, retrying'
sleep step
else
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
Expand Up @@ -99,6 +99,6 @@
end

it 'applies a second time without changes' do
apply_manifest(pp, catch_changes: true)
apply_manifest(pp, catch_changes: true, debug: true)
end
end

0 comments on commit 989ea8d

Please sign in to comment.