Sha256: 41f9b3e7685b12e94c7bd078889360bf3e37fedbb67288fd77a9abc370e8ead0
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 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 sleep(2) # Make sure the listener has started Propono.publish(topic, text) flunk("Test Timeout") unless wait_for_thread(thread) ensure thread.terminate end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
propono-0.8.2 | test/integration/sns_to_sqs_test.rb |
propono-0.8.0 | test/integration/sns_to_sqs_test.rb |
propono-0.7.0 | test/integration/sns_to_sqs_test.rb |