You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/11/14 11:50:51 UTC

[avro] branch branch-1.11 updated: AVRO-3662: It seems Ruby 2.6 sometimes retains '2' (#1963)

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

mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.11 by this push:
     new e1a264a82 AVRO-3662: It seems Ruby 2.6 sometimes retains '2' (#1963)
e1a264a82 is described below

commit e1a264a82c8b0d3c427a755125da81a74092f2b6
Author: Martin Grigorov <ma...@users.noreply.github.com>
AuthorDate: Mon Nov 14 13:50:00 2022 +0200

    AVRO-3662: It seems Ruby 2.6 sometimes retains '2' (#1963)
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
    (cherry picked from commit 35545f9de44658ccf5d28a9caa53a4c4fc73567a)
---
 lang/ruby/test/test_logical_types.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lang/ruby/test/test_logical_types.rb b/lang/ruby/test/test_logical_types.rb
index 9806eaece..bb3688948 100644
--- a/lang/ruby/test/test_logical_types.rb
+++ b/lang/ruby/test/test_logical_types.rb
@@ -230,8 +230,8 @@ class TestLogicalTypes < Test::Unit::TestCase
       end
 
       assert_equal 5, report.total_allocated
-      # Ruby 2.7 does not retain anything. Ruby 2.6 retains 1
-      assert_operator 1, :>=, report.total_retained
+      # Ruby 2.7 does not retain anything. Ruby 2.6 retains 1 or 2
+      assert_operator 2, :>=, report.total_retained
     end
   end