[qpid-proton] branch jiridanek-PROTON-2281 created (now ed69189)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[qpid-proton] branch jiridanek-PROTON-2281 created (now ed69189)

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

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


      at ed69189  PROTON-2281 Fix flakiness in ruby-message-spec test

This branch includes the following new commits:

     new ed69189  PROTON-2281 Fix flakiness in ruby-message-spec test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Reply | Threaded
Open this post in threaded view
|

[qpid-proton] 01/01: PROTON-2281 Fix flakiness in ruby-message-spec test

jdanek
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 <[hidden email]>
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: [hidden email]
For additional commands, e-mail: [hidden email]