This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch jiridanek-PROTON-2281
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit ed691894028a8609c5b61c6479ce9eae0739da87
Author: Jiri DanÄ›k <[email protected]>
AuthorDate: Thu Jan 7 19:31:00 2021 +0100

    PROTON-2281 Fix flakiness in ruby-message-spec test
---
 ruby/spec/message_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruby/spec/message_spec.rb b/ruby/spec/message_spec.rb
index 7976716..2caf5a3 100644
--- a/ruby/spec/message_spec.rb
+++ b/ruby/spec/message_spec.rb
@@ -109,7 +109,7 @@ module Qpid
 
       it "raises an error when the time-to-live is negative" do
         proc {
-          @message.ttl = (0 - rand(1000))
+          @message.ttl = (0 - (rand(1000) + 1))
         }.must_raise(RangeError)
       end
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to