aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/server.rb')
-rw-r--r--test/utils/server.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils/server.rb b/test/utils/server.rb
index 8d1c81d..82eb00f 100644
--- a/test/utils/server.rb
+++ b/test/utils/server.rb
@@ -3,7 +3,7 @@ require "timeout"
module ServerUtils
def open_server_connection(scheme = :https)
io = StringIO.new
- @_con = (scheme == :https ? HTTPSConnection : HTTPConnection).new(io)
+ @_con = (scheme == :https ? HTTPSServerConnection : HTTPServerConnection).new(io)
@_con << Connection::CLIENT_CONNECTION_PREFACE
@_con << Frame.new(type: :settings, stream_id: 0).assemble
if block_given?
@@ -14,7 +14,7 @@ module ServerUtils
end
def open_new_stream(arg1 = nil, **kwargs)
- if arg1.is_a?(Connection)
+ if arg1.is_a?(ServerConnection)
con = arg1
else
con = open_server_connection