Skip to content

Commit 5bb92d9

Browse files
committed
Fix server context.
1 parent 8a2e0f7 commit 5bb92d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fixtures/server_context.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
require 'async/http/server'
1111
require 'async/http/client'
1212
require 'async/http/endpoint'
13-
require 'async/io/shared_endpoint'
1413
require 'async/websocket/adapters/http'
1514
require 'async/websocket/client'
1615

@@ -64,7 +63,7 @@ def before
6463
@client = Async::HTTP::Client.new(endpoint, protocol: endpoint.protocol, retries: retries)
6564

6665
# We bind the endpoint before running the server so that we know incoming connections will be accepted:
67-
@bound_endpoint = Async::IO::SharedEndpoint.bound(endpoint)
66+
@bound_endpoint = endpoint.bound
6867

6968
# I feel a dedicated class might be better than this hack:
7069
mock(@bound_endpoint) do |mock|

0 commit comments

Comments
 (0)