Skip to content

Commit

Permalink
Test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfis committed Jan 7, 2024
1 parent 607d487 commit 6ddae5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/exclude_methods_test.rb
Expand Up @@ -34,7 +34,7 @@ def self.f
end

class ExcludeMethodsTest < TestCase
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.2')
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.3')
def test_methods_can_be_profiled
obj = ExcludeMethodsClass.new
prf = RubyProf::Profile.new(measure_mode: RubyProf::WALL_TIME)
Expand Down
2 changes: 1 addition & 1 deletion test/line_number_test.rb
Expand Up @@ -130,7 +130,7 @@ def test_function_line_no
assert_equal(1, method.call_trees.callees.count)
call_tree = method.call_trees.callees[0]
assert_equal('LineNumbers#method_1', call_tree.target.full_name)
assert_equal(35, call_tree.line)
assert_equal(36, call_tree.line)
end
else
def test_function_line_no
Expand Down

0 comments on commit 6ddae5d

Please sign in to comment.