spec/async/io/ssl_socket_spec.rb in async-io-1.2.1 vs spec/async/io/ssl_socket_spec.rb in async-io-1.3.0
- old
+ new
@@ -25,10 +25,10 @@
RSpec.describe Async::Reactor do
include_context Async::RSpec::Leaks
include_context Async::RSpec::SSL::VerifiedContexts
# Shared port for localhost network tests.
- let(:endpoint) {Async::IO::Endpoint.tcp("localhost", 6779, reuse_port: true)}
+ let(:endpoint) {Async::IO::Endpoint.tcp("127.0.0.1", 6779, reuse_port: true)}
let(:server_endpoint) {Async::IO::SecureEndpoint.new(endpoint, ssl_context: server_context)}
let(:client_endpoint) {Async::IO::SecureEndpoint.new(endpoint, ssl_context: client_context)}
let(:data) {"The quick brown fox jumped over the lazy dog."}