Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
cfisoi committed Jan 7, 2024
1 parent 5aed8b3 commit 2b888f7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/thread_test.rb
Expand Up @@ -144,7 +144,6 @@ def test_thread_timings
# force it to hit thread.join, below, first
# thus forcing sleep(1), below, to be counted as (wall) self_time
# since we currently count time "in some other thread" as self.wait_time
# for whatever reason
sleep(1)
end
thread.join
Expand All @@ -155,9 +154,6 @@ def test_thread_timings

rp_thread = result.threads.detect {|t| t.id == thread.object_id}
methods = rp_thread.methods.sort.reverse
# fails on travis. why?
# expected_methods = ["ThreadTest#test_thread_timings", "Kernel#sleep"]
# assert_equal(expected_methods, methods.map(&:full_name))

method = methods[0]
assert_equal('ThreadTest#test_thread_timings', method.full_name)
Expand Down

0 comments on commit 2b888f7

Please sign in to comment.