Fix test of GVL instrumentation on Ractor sleeping

It seems that the Ractor sleep GVL event arrives very slightly after the
value becomes available and other threads wake (which makes sense) so we
need a little additional time to ensure we end up in a consisteny state.
This commit is contained in:
John Hawthorn 2023-12-09 11:33:36 -08:00
parent b2ad4fec1a
commit 9e09e5aa3a

View File

@ -172,6 +172,7 @@ class TestThreadInstrumentation < Test::Unit::TestCase
sleep 0.1
Thread.current
}.take
sleep 0.1
end
timeline = timeline_for(thread, full_timeline)