Sha256: 3c2c9e5338496d72d653ad804e9d65cff9397f87a5a018392f919729c02d17a5

Contents?: true

Size: 757 Bytes

Versions: 7

Compression:

Stored size: 757 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)

module Propono
  class IntegrationTest < Minitest::Test

    def propono_client
      config_file = YAML.load_file( File.expand_path('../../config.yml', __FILE__))
      @propono_client ||= Propono::Client.new do |config|
        config.access_key = config_file['access_key']
        config.secret_key = config_file['secret_key']
        config.queue_region = config_file['queue_region']
        config.application_name = config_file['application_name']
      end
    end

    # Wait a max of 20secs before failing the test
    def wait_for_thread(thread, secs = 20)
      (secs * 10).times do |x|
        return true unless thread.alive?
        sleep(0.1)
      end
      false
    end
  end
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
propono-2.2.1 test/integration/integration_test.rb
propono-2.2.0 test/integration/integration_test.rb
propono-2.1.0 test/integration/integration_test.rb
propono-2.0.0 test/integration/integration_test.rb
propono-2.0.0.rc3 test/integration/integration_test.rb
propono-2.0.0.rc2 test/integration/integration_test.rb
propono-2.0.0.rc1 test/integration/integration_test.rb