diff --git a/fixtures/async/http/a_protocol.rb b/fixtures/async/http/a_protocol.rb index 82eb3de..c20a7de 100644 --- a/fixtures/async/http/a_protocol.rb +++ b/fixtures/async/http/a_protocol.rb @@ -229,6 +229,11 @@ module HTTP end end + def endpoint_options + # Add a timeout to ensure that slow clients are disconnected: + super.merge(timeout: 0.5) + end + it "should have valid scheme" do expect(server.scheme).to be == "http" end @@ -507,6 +512,10 @@ module HTTP end end + def endpoint_options + super.merge(timeout: 0.5) + end + it "can't get /" do expect do response = client.get("/")