From 9e09e5aa3af03a42cf6ef59da2779b0a5d5a6505 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sat, 9 Dec 2023 11:33:36 -0800 Subject: [PATCH] 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. --- test/-ext-/thread/test_instrumentation_api.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/-ext-/thread/test_instrumentation_api.rb b/test/-ext-/thread/test_instrumentation_api.rb index c9480c285f..4b2edae21a 100644 --- a/test/-ext-/thread/test_instrumentation_api.rb +++ b/test/-ext-/thread/test_instrumentation_api.rb @@ -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)