8000 Use URLEndpoint for specs. · destructobeam/async-websocket@8d916ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d916ca

Browse files
committed
Use URLEndpoint for specs.
1 parent f42e56c commit 8d916ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/async/websocket/connection_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@
2424
require 'rack/test'
2525
require 'falcon/server'
2626
require 'falcon/adapters/rack'
27+
require 'async/http/url_endpoint'
2728

2829
RSpec.describe Async::WebSocket::Connection, timeout: 5 do
2930
include_context Async::RSpec::Reactor
3031

31-
let(:server_address) {Async::IO::Endpoint.tcp('0.0.0.0', 9000)}
32+
let(:server_address) {Async::HTTP::URLEndpoint.parse("http://localhost:9000")}
3233
let(:app) {Rack::Builder.parse_file(File.expand_path('../connection_spec.ru', __FILE__)).first}
3334
let(:server) {Falcon::Server.new(Falcon::Server.middleware(app, verbose: true), server_address)}
3435

0 commit comments

Comments
 (0)
0