Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 9571814

Browse files
committed
Fix issue with RSpec recursive mutex.
1 parent 11cb3fa commit 9571814

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

spec/async/io/shared_endpoint/server_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
include_context Async::RSpec::SSL::VerifiedContexts
3333
include_context Async::RSpec::SSL::ValidCertificate
3434

35-
let(:endpoint) {Async::IO::Endpoint.tcp("127.0.0.1", 6781, reuse_port: true)}
36-
let(:server_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: server_context)}
37-
let(:client_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: client_context)}
35+
let!(:endpoint) {Async::IO::Endpoint.tcp("127.0.0.1", 6781, reuse_port: true)}
36+
let!(:server_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: server_context)}
37+
let!(:client_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: client_context)}
3838

3939
let!(:bound_endpoint) do
4040
Async do

spec/async/io/socket/udp_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
include_context Async::RSpec::Reactor
2727

2828
# Shared port for localhost network tests.
29-
let(:server_address) {Async::IO::Address.udp("127.0.0.1", 6778)}
29+
let!(:server_address) {Async::IO::Address.udp("127.0.0.1", 6778)}
3030
let(:data) {"The quick brown fox jumped over the lazy dog."}
3131

3232
let!(:server_task) do

spec/async/io/ssl_socket_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
include_context Async::RSpec::SSL::VerifiedContexts
3535

3636
# Shared port for localhost network tests.
37-
let(:endpoint) {Async::IO::Endpoint.tcp("127.0.0.1", 6779, reuse_port: true, timeout: 10)}
38-
let(:server_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: server_context, timeout: 20)}
39-
let(:client_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: client_context, timeout: 20)}
40-
37+
let!(:endpoint) {Async::IO::Endpoint.tcp("127.0.0.1", 6779, reuse_port: true, timeout: 10)}
38+
let!(:server_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: server_context, timeout: 20)}
39+
let!(:client_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: client_context, timeout: 20)}
40+
4141
let(:data) {"The quick brown fox jumped over the lazy dog."}
42-
42+
4343
let!(:server_task) do
4444
ready = Async::Queue.new
4545

0 commit comments

Comments
 (0)