Sha256: 53f35389407790449ac3a1c493a0091987a290475345748ad58cdf2565f597f1
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
require File.expand_path('../integration_test', __FILE__) module Propono class UdpProxyTest < IntegrationTest def test_the_message_gets_there topic = "test-topic" message = "This is my message" udp_thread = Thread.new do Propono.proxy_udp end sqs_thread = Thread.new do Propono.listen_to_queue(topic) do |sqs_message| assert_equal message, sqs_message sqs_thread.terminate end end Propono.publish(topic, message, protocol: :udp) flunk unless wait_for_thread(sqs_thread) ensure udp_thread.terminate sqs_thread.terminate end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
propono-0.6.1 | test/integration/udp_proxy_test.rb |
propono-0.6.0 | test/integration/udp_proxy_test.rb |