Sha256: c0ab5af7941d681b200a206b24ba921b9b0e02f8881ddfb2b7bd3760db534f65
Contents?: true
Size: 711 Bytes
Versions: 5
Compression:
Stored size: 711 Bytes
Contents
# encoding: utf-8 require_relative "../spec_helper" require "logstash/plugin" require "logstash/event" describe LogStash::Outputs::ZeroMQ, :integration => true do describe "send events" do let(:nevents) { 10 } let(:port) { rand(1000)+1025 } let(:conf) do { "address" => ["tcp://127.0.0.1:#{port}"], "topology" => "pushpull" } end let(:events) do output(conf, nevents) do res = [] client = ZeroMQClient.new("127.0.0.1", port) nevents.times do res << client.recv end client.close res end end it "should receive the events" do expect(events.count).to be(nevents) end end end
Version data entries
5 entries across 5 versions & 1 rubygems