spec/inputs/relp_spec.rb in logstash-input-relp-2.0.5 vs spec/inputs/relp_spec.rb in logstash-input-relp-3.0.0

- old
+ new

@@ -66,12 +66,12 @@ client.close rescue nil end end it "should do multiple connections" do - nclients.times do |client_id| - expect(events).to have(nevents).with("Hello from client#{client_id}") - end + expect(events.size).to eq(nevents * nclients) + grouped = events.group_by { |e| /(client\d)/.match(e.get("message")) } + expect(grouped.size).to eq(nclients) end end describe "SSL support" do