diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c88d569..3192a8e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,6 +25,7 @@ jobs: - "3.1" - "3.2" - "3.3" + - "3.4" - "head" - "jruby" - "truffleruby" diff --git a/spec/nio/selectables/ssl_socket_spec.rb b/spec/nio/selectables/ssl_socket_spec.rb index a8c394d..b56a620 100644 --- a/spec/nio/selectables/ssl_socket_spec.rb +++ b/spec/nio/selectables/ssl_socket_spec.rb @@ -39,7 +39,8 @@ ctx.cert = ssl_cert ctx.key = ssl_key unless @tls.empty? - if ctx.respond_to? :set_minmax_proto_version, true + if ctx.respond_to? :max_version= + ctx.min_version = @tls[0] ctx.max_version = @tls[0] else ctx.ssl_version = @tls[1]