From 08878c4428fddb4b20b343ff643fa9ca8eb3c006 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 20 Nov 2024 22:26:20 +1300 Subject: [PATCH] Fix tests. --- fixtures/async/http/a_protocol.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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("/")