spec/event_sender_spec.rb in launchdarkly-server-sdk-5.7.1 vs spec/event_sender_spec.rb in launchdarkly-server-sdk-5.7.2
- old
+ new
@@ -25,11 +25,11 @@
it "sends analytics event data" do
with_sender_and_server do |es, server|
server.setup_ok_response("/bulk", "")
- result = es.send_event_data(fake_data, false)
+ result = es.send_event_data(fake_data, "", false)
expect(result.success).to be true
expect(result.must_shutdown).to be false
expect(result.time_from_server).not_to be_nil
@@ -47,12 +47,12 @@
it "generates a new payload ID for each payload" do
with_sender_and_server do |es, server|
server.setup_ok_response("/bulk", "")
- result1 = es.send_event_data(fake_data, false)
- result2 = es.send_event_data(fake_data, false)
+ result1 = es.send_event_data(fake_data, "", false)
+ result2 = es.send_event_data(fake_data, "", false)
expect(result1.success).to be true
expect(result2.success).to be true
req1, body1 = server.await_request_with_body
req2, body2 = server.await_request_with_body
@@ -64,11 +64,11 @@
it "sends diagnostic event data" do
with_sender_and_server do |es, server|
server.setup_ok_response("/diagnostic", "")
- result = es.send_event_data(fake_data, true)
+ result = es.send_event_data(fake_data, "", true)
expect(result.success).to be true
expect(result.must_shutdown).to be false
expect(result.time_from_server).not_to be_nil
@@ -92,11 +92,11 @@
begin
ENV["http_proxy"] = proxy.base_uri.to_s
es = make_sender(server)
- result = es.send_event_data(fake_data, false)
+ result = es.send_event_data(fake_data, "", false)
expect(result.success).to be true
req, body = server.await_request_with_body
expect(body).to eq fake_data
@@ -114,11 +114,11 @@
server.setup_response("/bulk") do |req, res|
req_count = req_count + 1
res.status = req_count == 2 ? 200 : status
end
- result = es.send_event_data(fake_data, false)
+ result = es.send_event_data(fake_data, "", false)
expect(result.success).to be true
expect(result.must_shutdown).to be false
expect(result.time_from_server).not_to be_nil
@@ -139,11 +139,11 @@
server.setup_response("/bulk") do |req, res|
req_count = req_count + 1
res.status = req_count == 3 ? 200 : status
end
- result = es.send_event_data(fake_data, false)
+ result = es.send_event_data(fake_data, "", false)
expect(result.success).to be false
expect(result.must_shutdown).to be false
expect(result.time_from_server).to be_nil
@@ -162,10 +162,10 @@
with_sender_and_server do |es, server|
server.setup_response("/bulk") do |req, res|
res.status = status
end
- result = es.send_event_data(fake_data, false)
+ result = es.send_event_data(fake_data, "", false)
expect(result.success).to be false
expect(result.must_shutdown).to be true
expect(result.time_from_server).to be_nil