We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pop_response
1 parent ce5a9e5 commit fd8acfcCopy full SHA for fd8acfc
1 file changed
lib/ruby_lsp/base_server.rb
@@ -103,7 +103,7 @@ def start
103
# This method is only intended to be used in tests! Pops the latest response that would be sent to the client
104
#: -> untyped
105
def pop_response
106
- @outgoing_queue.pop
+ @outgoing_queue.pop(timeout: 20) || raise("No message received from server")
107
end
108
109
# This method is only intended to be used in tests! Pushes a message to the incoming queue directly
0 commit comments