aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-10-25 18:42:07 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-10-25 18:42:07 +0900
commit4d5d63bc80e13b0449799f721df768bff2088c44 (patch)
tree2a4700481745e18a53b1126ee36f155d11b30cd1 /test
parent28a3a72007b2592ff5ea6bbd6984340133636065 (diff)
downloadplum-4d5d63bc80e13b0449799f721df768bff2088c44.tar.gz
!connection: Connection keep only writer proc
Diffstat (limited to 'test')
-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 e0bdae9..8d1c81d 100644
--- a/test/utils/server.rb
+++ b/test/utils/server.rb
@@ -31,7 +31,7 @@ module ServerUtils
end
def sent_frames(con = nil)
- resp = (con || @_con).io.string.dup.force_encoding(Encoding::BINARY)
+ resp = (con || @_con).sock.string.dup.force_encoding(Encoding::BINARY)
frames = []
while f = Frame.parse!(resp)
frames << f
@@ -40,7 +40,7 @@ module ServerUtils
end
def capture_frames(con = nil, &blk)
- io = (con || @_con).io
+ io = (con || @_con).sock
pos = io.string.bytesize
blk.call
resp = io.string.byteslice(pos, io.string.bytesize - pos).force_encoding(Encoding::BINARY)