Sha256: 1a81f1a507eb5bf48e472221d03b4da7ad4a81f09dc89e3f22d5a9e744491878

Contents?: true

Size: 772 Bytes

Versions: 9

Compression:

Stored size: 772 Bytes

Contents

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

module Propono
  class IntegrationTest < Minitest::Test
    def setup
      super
      Fog.unmock!

      config_file = YAML.load_file( File.expand_path('../../config.yml', __FILE__))
      Propono.config 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']
        config.udp_host = "localhost"
      end
    end

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


Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
propono-0.11.1 test/integration/integration_test.rb
propono-0.11.0 test/integration/integration_test.rb
propono-0.10.0 test/integration/integration_test.rb
propono-0.9.1 test/integration/integration_test.rb
propono-0.9.0 test/integration/integration_test.rb
propono-0.8.2 test/integration/integration_test.rb
propono-0.8.0 test/integration/integration_test.rb
propono-0.7.0 test/integration/integration_test.rb
propono-0.6.3 test/integration/integration_test.rb