You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2018/11/02 20:46:46 UTC
[26/50] qpid-proton git commit: NO-JIRA: [ruby] replace #sum with
#reduce for ruby < 2.4
NO-JIRA: [ruby] replace #sum with #reduce for ruby < 2.4
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/5595c41c
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/5595c41c
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/5595c41c
Branch: refs/heads/go1
Commit: 5595c41c5972b35fc07c7b73d1aecd0bc402c741
Parents: 5cd006f
Author: Alan Conway <ac...@redhat.com>
Authored: Wed Sep 19 13:19:30 2018 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Wed Sep 19 13:19:30 2018 -0400
----------------------------------------------------------------------
ruby/tests/test_container.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/5595c41c/ruby/tests/test_container.rb
----------------------------------------------------------------------
diff --git a/ruby/tests/test_container.rb b/ruby/tests/test_container.rb
index ae4e5d2..13e1fd5 100644
--- a/ruby/tests/test_container.rb
+++ b/ruby/tests/test_container.rb
@@ -351,7 +351,7 @@ class ContainerTest < MiniTest::Test
x = a.shift
assert_equal d, x[0]
end
- assert_equalish delays.sum, Time.now-start
+ assert_equalish delays.reduce(:+), Time.now-start
end
# Test container work queue finishes due tasks on external stop, drops future tasks
@@ -389,7 +389,7 @@ class ContainerTest < MiniTest::Test
start = Time.now
c.run
assert_equal 3, a.size
- assert_equalish delays.sum, Time.now-start
+ assert_equalish delays.reduce(:+), Time.now-start
end
# Schedule calls from handlers
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org