blob: f8937e271dea1b7967db15f06d83270846cd611c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require "timeout"
module ServerUtils
def open_client_connection(scheme = :https)
io = StringIO.new
@_ccon = ClientConnection.new(io.method(:write))
@_ccon << Frame::Settings.new(:ack).assemble
@_ccon << Frame::Settings.new.assemble
if block_given?
yield @_ccon
else
@_ccon
end
end
end
class Minitest::Test
include ServerUtils
end
|