Skip to content

Commit 08878c4

Browse files
committed
Fix tests.
1 parent 4ce90b1 commit 08878c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

fixtures/async/http/a_protocol.rb

+9
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ module HTTP
229229
end
230230
end
231231

232+
def endpoint_options
233+
# Add a timeout to ensure that slow clients are disconnected:
234+
super.merge(timeout: 0.5)
235+
end
236+
232237
it "should have valid scheme" do
233238
expect(server.scheme).to be == "http"
234239
end
@@ -507,6 +512,10 @@ module HTTP
507512
end
508513
end
509514

515+
def endpoint_options
516+
super.merge(timeout: 0.5)
517+
end
518+
510519
it "can't get /" do
511520
expect do
512521
response = client.get("/")

0 commit comments

Comments
 (0)