Skip to content

Commit

Permalink
Removed compatibility test that tries to append "nil" to repeated field.
Browse files Browse the repository at this point in the history
  • Loading branch information
haberman committed Mar 2, 2021
1 parent dfa5457 commit 7d63b99
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ruby/compatibility_tests/v3.0.0/tests/repeated_field_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -326,18 +326,6 @@ def test_collect!
end
end

def test_compact!
m = TestMessage.new
m.repeated_msg << TestMessage2.new(:foo => 1)
m.repeated_msg << nil
m.repeated_msg << TestMessage2.new(:foo => 2)
reference_arr = m.repeated_string.to_a

check_self_modifying_method(m.repeated_string, reference_arr) do |arr|
arr.compact!
end
end

def test_delete
m = TestMessage.new
reference_arr = %w(foo bar baz)
Expand Down

0 comments on commit 7d63b99

Please sign in to comment.