Skip to content

Commit cf58a9b

Browse files
committed
Support Rubies without Array#sum in test
1 parent 930d198 commit cf58a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_stackprof.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_raw
152152

153153
assert_equal 10, profile[:raw_timestamp_deltas].size
154154
total_duration = after_monotonic - before_monotonic
155-
assert_operator profile[:raw_timestamp_deltas].sum, :<, total_duration
155+
assert_operator profile[:raw_timestamp_deltas].inject(&:+), :<, total_duration
156156
end
157157

158158
def test_metadata

0 commit comments

Comments
 (0)