aboutsummaryrefslogtreecommitdiffstats
path: root/test/plum/client/test_connection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/plum/client/test_connection.rb')
-rw-r--r--test/plum/client/test_connection.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/plum/client/test_connection.rb b/test/plum/client/test_connection.rb
new file mode 100644
index 0000000..b539d77
--- /dev/null
+++ b/test/plum/client/test_connection.rb
@@ -0,0 +1,11 @@
+require "test_helper"
+
+using Plum::BinaryString
+class ClientConnectionTest < Minitest::Test
+ def test_open_stream
+ con = open_client_connection
+ stream = con.open_stream(weight: 256)
+ assert(stream.id % 2 == 1)
+ assert_equal(256, stream.weight)
+ end
+end