aboutsummaryrefslogtreecommitdiffstats
path: root/test/plum/client/test_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/plum/client/test_client.rb')
-rw-r--r--test/plum/client/test_client.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/plum/client/test_client.rb b/test/plum/client/test_client.rb
index 13aa82a..2a4d8b6 100644
--- a/test/plum/client/test_client.rb
+++ b/test/plum/client/test_client.rb
@@ -2,16 +2,6 @@ require "test_helper"
using Plum::BinaryString
class ClientTest < Minitest::Test
- def test_request_sync
- server_thread = start_tls_server
- client = Client.start("127.0.0.1", LISTEN_PORT, https: true, verify_mode: OpenSSL::SSL::VERIFY_NONE)
- res1 = client.put!("/", "aaa", headers: { "header" => "ccc" })
- assert_equal("PUTcccaaa", res1.body)
- client.close
- ensure
- server_thread.join if server_thread
- end
-
def test_request_async
res2 = nil
client = nil
@@ -42,19 +32,6 @@ class ClientTest < Minitest::Test
server_thread.join if server_thread
end
- def test_raise_error_sync
- client = nil
- server_thread = start_tls_server
- Client.start("127.0.0.1", LISTEN_PORT, https: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |c|
- client = c
- assert_raises(LocalConnectionError) {
- client.get!("/connection_error")
- }
- }
- ensure
- server_thread.join if server_thread
- end
-
def test_raise_error_async_seq_resume
server_thread = start_tls_server
client = Client.start("127.0.0.1", LISTEN_PORT, https: true, verify_mode: OpenSSL::SSL::VERIFY_NONE)