We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b4f29e commit fcbc3a1Copy full SHA for fcbc3a1
test/test_helper.rb
@@ -32,16 +32,23 @@ class TestCase
32
extend T::Sig
33
include RubyLsp::TestHelper
34
35
+ def before_setup
36
+ super
37
+ @mutex = Mutex.new
38
+ end
39
+
40
sig { returns(String) }
41
def dummy_root
42
File.expand_path("#{__dir__}/dummy")
43
end
44
45
sig { void }
46
def wait_for_rails_addon_activation
- Thread.new do
- T.cast(RubyLsp::Addon.addons.first, RubyLsp::Rails::Addon).rails_runner_client
- end.join
47
+ @mutex.synchronize do
48
+ Thread.new do
49
+ T.cast(RubyLsp::Addon.addons.first, RubyLsp::Rails::Addon).rails_runner_client
50
+ end.join
51
52
53
54
sig { params(server: RubyLsp::Server).returns(RubyLsp::Result) }
0 commit comments