aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-02-16 16:32:55 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-02-16 16:32:55 +0900
commitc35ce880e466fb52acd3e290ba729fc90e93be59 (patch)
tree5db18dde804041d4e9693e943e311647d0223d70
parent736969c7f3cf49611b3a6f7463640c4d335e5bf2 (diff)
downloadplum-c35ce880e466fb52acd3e290ba729fc90e93be59.tar.gz
test: fix error on mingw64
-rw-r--r--test/plum/client/test_client.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/plum/client/test_client.rb b/test/plum/client/test_client.rb
index 35c0638..2926f82 100644
--- a/test/plum/client/test_client.rb
+++ b/test/plum/client/test_client.rb
@@ -135,8 +135,12 @@ class ClientTest < Minitest::Test
yield plum if block_given?
- while !sock.closed? && !sock.eof?
- plum << sock.readpartial(1024)
+ begin
+ while !sock.closed? && !sock.eof?
+ plum << sock.readpartial(1024)
+ end
+ rescue Errno::ECONNABORTED
+ # Ignore, this happens only when running on mingw64(?)
end
}
rescue OpenSSL::SSL::SSLError