Skip to content

Commit

Permalink
Make the timeout test a little quicker to fail (as expected).
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 23, 2024
1 parent 6e1957d commit f80569b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/falcon/command/virtual.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def around
end

with "short timeout" do
let(:options) {["--timeout", "1"]}
let(:options) {["--timeout", "0.1"]}
let(:host_endpoint) {command.host_endpoint("hello.localhost").with(protocol: protocol)}

it "times out after lack of data" do
Expand All @@ -109,7 +109,7 @@ def around
expect(response).to be(:success?)
expect(response.read).to be == "Hello World"

task.sleep(2)
task.sleep(0.2)

# Try to reuse the connection:
response = secure_client.call(request)
Expand Down

0 comments on commit f80569b

Please sign in to comment.