diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-02-16 16:32:55 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-02-16 16:32:55 +0900 |
commit | c35ce880e466fb52acd3e290ba729fc90e93be59 (patch) | |
tree | 5db18dde804041d4e9693e943e311647d0223d70 /test | |
parent | 736969c7f3cf49611b3a6f7463640c4d335e5bf2 (diff) | |
download | plum-c35ce880e466fb52acd3e290ba729fc90e93be59.tar.gz |
test: fix error on mingw64
Diffstat (limited to 'test')
-rw-r--r-- | test/plum/client/test_client.rb | 8 |
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 |