spec/lib/bolt_spec/bolt_server.rb
# Waits until puppetserver is accepting requests
Waits until puppetserver is accepting requests
Waits until puppetserver is accepting requests
def wait_until_available(timeout:, interval:)
      start = Time.now
      until healthy?
        if (Time.now - start).to_i >= timeout
          raise "Timed out waiting for puppetserver to start accepting requests"
        end
        sleep interval
      end
    end
def wait_until_available ( timeout : , interval : ) start = Time . now until healthy? if ( Time . now - start ) . to_i >= timeout raise "Timed out waiting for puppetserver to start accepting requests" end sleep interval end end
Waits until puppetserver is accepting requests
Waits until puppetserver is accepting requests
timeout
<not_specific>
interval
<not_specific>