Sha256: a5aa03d29c7c53511de2f31c9cb96841819b143e00c7d05683eb94a5c85152f4

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

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

module Propono
  class SnsToSqsTest < IntegrationTest
    def test_the_message_gets_there
      topic = "test-topic"
      text = "This is my message"

      Propono.subscribe_by_queue(topic)

      thread = Thread.new do
        Propono.listen_to_queue(topic) do |message|
          assert_equal text, message
          break
        end
      end
      Propono.publish(topic, text)
      flunk("Test Timeout") unless wait_for_thread(thread)
    ensure
      thread.terminate
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
propono-0.6.3 test/integration/sns_to_sqs_test.rb