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:
parent
b2ad4fec1a
commit
9e09e5aa3a
@ -172,6 +172,7 @@ class TestThreadInstrumentation < Test::Unit::TestCase
|
|||||||
sleep 0.1
|
sleep 0.1
|
||||||
Thread.current
|
Thread.current
|
||||||
}.take
|
}.take
|
||||||
|
sleep 0.1
|
||||||
end
|
end
|
||||||
|
|
||||||
timeline = timeline_for(thread, full_timeline)
|
timeline = timeline_for(thread, full_timeline)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user