spec/outputs/newrelic_spec.rb in logstash-output-newrelic-1.0.5.pre.beta vs spec/outputs/newrelic_spec.rb in logstash-output-newrelic-1.0.7
- old
+ new
@@ -222,15 +222,16 @@
# configuration than we normally want
@newrelic_output&.shutdown
@newrelic_output = LogStash::Plugin.lookup("output", "newrelic").new(specific_config)
@newrelic_output.register
- expect(@newrelic_output.sleep_duration(0)).to equal(5)
- expect(@newrelic_output.sleep_duration(1)).to equal(10)
- expect(@newrelic_output.sleep_duration(2)).to equal(20)
- expect(@newrelic_output.sleep_duration(3)).to equal(40)
- expect(@newrelic_output.sleep_duration(4)).to equal(60)
- expect(@newrelic_output.sleep_duration(5)).to equal(60) # Never gets bigger than this
+ expect(@newrelic_output.sleep_duration(0)).to equal(0)
+ expect(@newrelic_output.sleep_duration(1)).to equal(5)
+ expect(@newrelic_output.sleep_duration(2)).to equal(10)
+ expect(@newrelic_output.sleep_duration(3)).to equal(20)
+ expect(@newrelic_output.sleep_duration(4)).to equal(40)
+ expect(@newrelic_output.sleep_duration(5)).to equal(60)
+ expect(@newrelic_output.sleep_duration(6)).to equal(60) # Never gets bigger than this
end
it "first call fails, should retry" do
stub_request(:any, base_uri)
.to_return(status: 500)