test/test_stackprof.rb in stackprof-0.2.19 vs test/test_stackprof.rb in stackprof-0.2.20
- old
+ new
@@ -3,9 +3,13 @@
require 'minitest/autorun'
require 'tempfile'
require 'pathname'
class StackProfTest < MiniTest::Test
+ def setup
+ Object.new # warm some caches to avoid flakiness
+ end
+
def test_info
profile = StackProf.run{}
assert_equal 1.2, profile[:version]
assert_equal :wall, profile[:mode]
assert_equal 1000, profile[:interval]