Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 20, 2024
1 parent 4ce90b1 commit 08878c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fixtures/async/http/a_protocol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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("/")
Expand Down

0 comments on commit 08878c4

Please sign in to comment.