aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-11-03 11:53:57 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-11-03 12:04:22 +0900
commit3bec944cea2d7c5f09198747e9e33c4cfdbb5cd4 (patch)
tree6ac5516b441e25e4b96dd707171ae2467235bd49 /test/utils
parent3a52f04bc7842dd11df6710d10522ad06180d3b2 (diff)
downloadplum-3bec944cea2d7c5f09198747e9e33c4cfdbb5cd4.tar.gz
split server into plum/server
Diffstat (limited to 'test/utils')
-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